Closed (fixed)
Project:
Services
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2007 at 19:56 UTC
Updated:
12 Feb 2008 at 06:41 UTC
Hi!
Excellent stuff on this services... I can hardly wait for the SOAP support.
I don't know if this is a Services related thing or if this is how Drupal parses nodes from the db, but...
Why doesn't the HTML for the node get passed? I tried putting a
tag into a node and then node.load that entry into Flash. The response does include the
tag... it gets stripped... or so it seems. Am I out to lunch? Flash can handle the html in a textfield.
Thoughts? Any ideas would be great!
Thanks,
Owen
Comments
Comment #1
jiv_e_old commentedI have the same question!
I have an img tag on my node, but it isn't in the getView result. Is it somehow possible to get full HTML result?
Comment #2
Steven Merrill commentedI ran into a similar issue, and I fixed it by switching my default input format to "Full HTML" from "Filtered HTML."
It would appear that services, or even maybe services_node_load is not respecting input format selection when loading nodes.
Comment #3
Steven Merrill commentedWell, it looks like services_node_load is doing the right thing, at least with a quick peek into the code:
services.module, lines 471 - 475:
Assuming $node->filter is being set properly, this should work, as the third parameter, $check, is being set to FALSE, so it should use the node's specified filter regardless of permission to set that filter.
Comment #4
robloachCorrect, use the "body_value" return from Services instead of "body" if you want just the straight $body. Having $check set to TRUE will result in having the filter use the filter assigned to the current user (anonymous), so we set it to FALSE, so that it uses the node's filter.
Comment #5
jiv_e_old commentedThanks guys!!!
Using "body_value" worked great. I have to investigate this result object a little bit more.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.