:: Forum >>

BUGREPORT: AW.textToValue has invalid regex


File: lib/browsers/common.js
Line: 133 - 138
AW.htmlPattern = /(&quot;|&amp;|&lt;|&gt|<[^<>]*>)/gm;
    AW.htmlTable = {"&quot;":"\"", "&amp;":"&", "&lt;":"<", "&gt;":">"};
    AW.htmlReplace = function(e){return AW.htmlTable[e] || ""};

    AW.valueToText = function(v){return v ? String(v).replace(AW.textPattern, AW.textReplace) : ""};
    AW.textToValue = function(t){return t ? String(t).replace(AW.htmlPattern, AW.htmlReplace) : ""};



/(&quot;|&amp;|&lt;|&gt|<[^<>]*>)/gm;

should be

/(&quot;|&amp;|&lt;|&gt;|<[^<>]*>)/gm;

HTH
Md. Sheriff, Drivestream
Friday, December 16, 2005
yes, thanks a lot!
(fixed)
Alex (ActiveWidgets)
Friday, December 16, 2005

This topic is archived.


Back to support forum

Forum search