Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: force attributes to be double quoted don't work for:img tag [27295]

$
0
0
Client\MicrosoftAjax.Extended\HtmlEditorExtender\HtmlEditorExtenderBehavior.Pre.js
line:722 change to
if (tag.toLowerCase().substring(0, 2) != '<a' && tag.toLowerCase().substring(0, 4) != '<img') {
sQA = /\=\'([^\'])*\'/g; //single quoted attributes
nQA = /\=([^\"][^\s\/\>]*)/g; //non double quoted attributes
return tag.replace(sQA, '="$1"').replace(nQA, '="$1"');
}
excample:
<img src="http://u.xxx.com/thumbnailimage.html?uid=xxx&dir=Blogs&file=xxx.png">
Comments: problem: &lt;img src="http://u.ytx188.com/user/thumbnailimage.html?uid="DIAOYUDAO&amp;dir=Blogs&amp;file=83d77ac3-b8c1-4e8c-9003-a992d115b320.png""&gt;

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>