Escaped XML/HTML gets removed from output
-
I tried to create a FAQ with some XML examples. The editor handles them fine, and I can see that it converts all the ‘<‘ and ‘>’ to appropriate HTML entities.
However, when viewing the FAQ, all of that content is stripped.
I tracked it down to calling html_entity_decode on the post content in View.FAQ.class.php:
$this->faq_answer = apply_filters( ‘the_content’, html_entity_decode( $this->post->post_content ) );If I remove “html_entity_decode”, my content shows up, and no other HTML seems to be affected.
Are you sure you should be calling that? If so, how can I get my XML examples to appear?
Here is the example page. But note that I’ve already removed the decode call:
https://www.dragonframe.com/blog/ufaqs/how-does-dragonframe-store-timeline-frame-edits-edit-decision-list/
- The topic ‘Escaped XML/HTML gets removed from output’ is closed to new replies.