Sha256: 53ad1783438eb580b399a1251becdd234c7989e5611b41b0350f33a6df482b4f

Contents?: true

Size: 1.41 KB

Versions: 31

Compression:

Stored size: 1.41 KB

Contents

<!--
Description: item content:encoded is crazy
Expect:      bozo and entries[0]['description'] == u'Crazy HTML -' + '- Can Your Regex Parse This?\n\n\n\n<!-' + '- <script> -' + '->\n\n<!-' + '- \n\t<script> \n-' + '->\n\n\n\nfunction executeMe()\n{\n\n\n\n\n/* \n<h1>Did The Javascript Execute?</h1>\n<div>\nI will execute here, too, if you mouse over me\n</div>'
-->
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<item>
<content:encoded>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

&lt;html xmlns="http://www.w3.org/1999/xhtml">
&lt;head>
&lt;title>Crazy HTML -- Can Your Regex Parse This?&lt;/title>

&lt;/head>
&lt;body    notRealAttribute="value"onload="executeMe();"foo="bar"

>
&lt;!-- &lt;script> -->

&lt;!-- 
	&lt;script> 
-->

&lt;/script>


&lt;script


>

function executeMe()
{




/* &lt;script> 
function am_i_javascript()
{
	var str = "Some innocuously commented out stuff";
}
&lt; /script>
*/

	
	
	
	
	
	
	
	
	alert("Executed");
}

                                   &lt;/script



>
&lt;h1>Did The Javascript Execute?&lt;/h1>
&lt;div notRealAttribute="value
"onmouseover="
executeMe();
"foo="bar">
I will execute here, too, if you mouse over me
&lt;/div>

&lt;/body>

&lt;/html>
</content:encoded>
</item>
</channel>
</rss

Version data entries

31 entries across 31 versions & 6 rubygems

Version Path
arthurgeek-rfeedparser-0.9.940 tests/illformed/sanitize/item_content_encoded_crazy.xml
eric-rfeedparser-0.9.951.2 tests/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.18 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.17 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.19 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.20 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.21 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.23 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.22 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.24 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.26 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.25 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.27 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.28 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
feedtools-0.2.29 test/feeds/illformed/sanitize/item_content_encoded_crazy.xml
rfeedparser-0.9.7 tests/illformed/sanitize/item_content_encoded_crazy.xml
rfeedparser-0.9.8 tests/illformed/sanitize/item_content_encoded_crazy.xml
rfeedparser-0.9.85 tests/illformed/sanitize/item_content_encoded_crazy.xml
rfeedparser-0.9.86 tests/illformed/sanitize/item_content_encoded_crazy.xml
rfeedparser-0.9.87 tests/illformed/sanitize/item_content_encoded_crazy.xml