<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List -  encodeForHTML</title>
    <link>https://forums.adobe.com/community/coldfusion/documentation?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 23 May 2013 14:05:20 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2013-05-23T14:05:20Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re:  encodeForHTML</title>
      <link>https://forums.adobe.com/message/5346239?tstart=0#5346239</link>
      <description>&lt;!-- [DocumentBodyStart:d0e47f77-0233-4d55-87d4-d5a1bfb2d6c2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Just FYI, I did some analysis here:&lt;/p&gt;&lt;p&gt;According to the docs for OWASP&amp;#8217;s encodeForHtml(), this function ought to be escaping characters in these ranges: 00-08, 0B-0C, 0E-1F, and 7F-9F. However, obviously, there are no characters in those ranges in that input string.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now I can see what&amp;#8217;s going on: a THORN is HTML character entity 222, which is DE in hex, so if one was to treat "%DE" as a percent-encoded hex charcter, then that&amp;#8217;d be a thorn. However percent encoding has got nothing to do with HTML (it&amp;#8217;s to do with URIs), so that interpretation seems irrelevant to me.&amp;nbsp; What I do know is that in the context of HTML, "%device%" doesn&amp;#8217;t need encoding to be "safe", so it shouldn&amp;#8217;t be touched by this function.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Not that this helps you, but it helps understand what's going on.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've voted for the bug.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d0e47f77-0233-4d55-87d4-d5a1bfb2d6c2] --&gt;&lt;img src='/beacon?t=1415921479326' /&gt;</description>
      <pubDate>Thu, 23 May 2013 14:05:20 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5346239?tstart=0#5346239</guid>
      <dc:date>2013-05-23T14:05:20Z</dc:date>
      <clearspace:dateToText>1 year 6 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  encodeForHTML</title>
      <link>https://forums.adobe.com/message/5346186?tstart=0#5346186</link>
      <description>&lt;!-- [DocumentBodyStart:79bf5bea-f0bf-4646-9579-fddec5b3d8ee] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Alright, until I know more I'm sticking with the old HTMLEditFormat.&amp;nbsp; In the mean time I've added Bug 3566150.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:79bf5bea-f0bf-4646-9579-fddec5b3d8ee] --&gt;</description>
      <pubDate>Thu, 23 May 2013 13:58:32 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5346186?tstart=0#5346186</guid>
      <dc:date>2013-05-23T13:58:32Z</dc:date>
      <clearspace:dateToText>1 year 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  encodeForHTML</title>
      <link>https://forums.adobe.com/message/5344623?tstart=0#5344623</link>
      <description>&lt;!-- [DocumentBodyStart:a03c4c44-80ad-4126-ae11-6237cc25e6a2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I see the same. I'd raise a bug if I was you. As for a work-around, not sure, given I don't see why it's messing with your string in the first place (it already seems safe to me?)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a03c4c44-80ad-4126-ae11-6237cc25e6a2] --&gt;</description>
      <pubDate>Wed, 22 May 2013 22:33:35 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5344623?tstart=0#5344623</guid>
      <dc:date>2013-05-22T22:33:35Z</dc:date>
      <clearspace:dateToText>1 year 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  encodeForHTML</title>
      <link>https://forums.adobe.com/message/5342762?tstart=0#5342762</link>
      <description>&lt;!-- [DocumentBodyStart:ba49d954-a444-4efb-901a-5d778347ee9a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;When I try "EncodeForHTML('%Device%')" I end up with "&amp;#222;vice&amp;amp;#x25;" which displays on the page as "&amp;#222;vice%"&amp;nbsp; Obviously this isn't what I intended.&amp;nbsp; Is there a way to prevent this function from assuming the input string is encoded?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ba49d954-a444-4efb-901a-5d778347ee9a] --&gt;</description>
      <pubDate>Wed, 22 May 2013 13:56:33 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/5342762?tstart=0#5342762</guid>
      <dc:date>2013-05-22T13:56:33Z</dc:date>
      <clearspace:dateToText>1 year 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  encodeForHTML</title>
      <link>https://forums.adobe.com/message/4408626?tstart=0#4408626</link>
      <description>&lt;!-- [DocumentBodyStart:744234cd-b129-4b59-a1b1-5e4172d1c90a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Adam,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for your feedback. The docs have been pushed live for CF10 &lt;span style="font-size: 10.0pt; font-family: 'Georgia','serif';"&gt;&lt;a class="jive-link-external-small" href="http://www.adobe.com/support/coldfusion" rel="nofollow"&gt;http://www.adobe.com/support/coldfusion&lt;/a&gt;&lt;/span&gt;. We will make the necessary changes during the next doc refresh cycle.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Suhas Yogin&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:744234cd-b129-4b59-a1b1-5e4172d1c90a] --&gt;</description>
      <pubDate>Tue, 15 May 2012 12:41:48 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4408626?tstart=0#4408626</guid>
      <dc:date>2012-05-15T12:41:48Z</dc:date>
      <clearspace:dateToText>2 years 6 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re:  encodeForHTML</title>
      <link>https://forums.adobe.com/message/4408634?tstart=0#4408634</link>
      <description>&lt;!-- [DocumentBodyStart:2184d113-8008-403e-b6a1-7d4c74483f40] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;This page should cross-ref to the page for htmlEditFormat() (&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7847.html" rel="nofollow"&gt;http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7 847.html&lt;/a&gt;&lt;span&gt;), as well as discuss the differences and merits of each; both in the context of intended usage and functionality.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2184d113-8008-403e-b6a1-7d4c74483f40] --&gt;</description>
      <pubDate>Tue, 15 May 2012 12:32:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4408634?tstart=0#4408634</guid>
      <dc:date>2012-05-15T12:32:39Z</dc:date>
      <clearspace:dateToText>2 years 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>encodeForHTML</title>
      <link>https://forums.adobe.com/message/4408573?tstart=0#4408573</link>
      <description>&lt;!-- [DocumentBodyStart:914bc1b3-0581-4b71-bdc1-09fa391122e9] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;This question was posted in response to the following article: &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WS932f2e4c7c04df8f-6f7941141353e2963af-7fff.html" rel="nofollow"&gt;http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WS932f2e4c7c04df8f-6f7941141353e2963af -7fff.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:914bc1b3-0581-4b71-bdc1-09fa391122e9] --&gt;</description>
      <pubDate>Tue, 15 May 2012 12:32:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4408573?tstart=0#4408573</guid>
      <dc:date>2012-05-15T12:32:39Z</dc:date>
      <clearspace:dateToText>2 years 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

