You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Kevin Brown (JIRA)" <ji...@apache.org> on 2009/06/29 09:16:47 UTC
[jira] Commented: (SHINDIG-1103) The bug is that
DOMDocument->loadHtml will remove tages like in script.
[ https://issues.apache.org/jira/browse/SHINDIG-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725061#action_12725061 ]
Kevin Brown commented on SHINDIG-1103:
--------------------------------------
Technically your content isn't valid xml (or even valid html). In XML the structure is:
<script>
- (text)=var test='
-<b>
----BIG WORDS
Try one of the following:
1. Escape the HTML entities in your string.
2. Escape the text of the script as an HTML comment
> The bug is that DOMDocument->loadHtml will remove tages like </b> in script.
> ----------------------------------------------------------------------------
>
> Key: SHINDIG-1103
> URL: https://issues.apache.org/jira/browse/SHINDIG-1103
> Project: Shindig
> Issue Type: Bug
> Components: PHP
> Affects Versions: trunk
> Reporter: lipeng
> Fix For: trunk
>
> Attachments: index-rewriter-test.patch
>
>
> Fixed shindig/php/test/index.php, We can request "http://shindig/test/index.php?test=GadgetRewriterTest" to get GadgetRewriterTest's result.
> Added shindig/php/test/gadgets/GadgetRewriterTest.php, To test when activate rewriter by rewrite_by_default=true, the rewrite code should change content within the content tag in application xml.
> <code>
> <Content type="html" view="default">
> <script>var test='<b>BIG WORDS</b>'</script>
> <h1>Hello, world!</h1>
> </Content>
> </code>
> be changed to
> <code>
> <script>var test='<b>BIG WORDS'</script>
> <h1>Hello, world!</h1>
> </code>
> The bug is that DOMDocument->loadHtml will remove tages like </b> in script. Every loadHtml calling has that problem. Do you have any solution for this?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.