Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Commented Unassigned: Incorrect minification of HTML strings [21899]

$
0
0
Steps to reproduce:

Create test.js with this code:
```
var str = '<div>Test</div>';
```

Run `ajaxmin.exe test.js -out test.min.js`

Output:
```
var str="<div>Test<\/div>"
```

Expected output:
```
var str="<div>Test</div>"
```

__Issue:__ Ajax Minifier is uncecessarily escaping the forward slash in the closing tag.

I'm using version 5.14.5506.26196.
Comments: ** Comment from web user: ronlo **

Yeah I had to make "inline" the default switch value a long time ago, because people would minify their script with no switches, stick it inline on their HTML page, and then complain to me that they were getting script errors.


Viewing all articles
Browse latest Browse all 683

Trending Articles



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