Groups
Sign in
Groups
UglifyJS
Conversations
About
Send feedback
Help
ampersand as htmlentity "&" returns a false compression
27 views
Skip to first unread message
Thomas Walther
unread,
Feb 3, 2014, 4:22:42 AM
2/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ugli...@googlegroups.com
I have a string width explizit "&" in it.
Now i want to replace this string from "&" to "&" (some use cases have to do it!)
JS uncompressed:
var result = mystring.replace(
'&'
,'&');
JS compressed width UglifyJS:
var result=mystring.replace(
'&'
,'&');
Solution:
Split the ampersand and the "amp;" to work fine:
var result = mystring.replace(
'&'+'amp;'
,'&');
What do you think about this problem/solution?
Is this a bug or a feature?
Do i have to hack the solution like above?
Reply all
Reply to author
Forward
0 new messages