The fix with text = text.replace(new RegExp('&',"gm"), '&'); doesn't not resolve any issue, even creates new bugs, if the metadata contains an unescaped & character then means that metadata is not the properly written.
Added some tests with & that ensure it is working right.
Hello,
It's about the conversion from
&
to&
, related to https://github.com/isaacs/sax-js/issues/167 issue.The fix with
text = text.replace(new RegExp('&',"gm"), '&');
doesn't not resolve any issue, even creates new bugs, if the metadata contains an unescaped&
character then means that metadata is not the properly written.Added some tests with
&
that ensure it is working right.Thanks