3.2.0

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
December 16,
yes, thanks a lot!
(fixed)
Alex (ActiveWidgets)
December 16,

This topic is archived.

See also:


Back to support forum