Closed JoshOldenburg closed 9 years ago
This will ignore an ampersand if it is inside of a tag matched by /<(\/)?(pre|code|kbd|script|math|title)[^>]*>/i. Previously, ampersands inside of script tags would be wrapped. This also adds a test.
/<(\/)?(pre|code|kbd|script|math|title)[^>]*>/i
Thanks!
This will ignore an ampersand if it is inside of a tag matched by
/<(\/)?(pre|code|kbd|script|math|title)[^>]*>/i
. Previously, ampersands inside of script tags would be wrapped. This also adds a test.