Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- htmlOut = htmlOut.replaceAll("&(?![a-zA-Z]+;)", "&"); // replace all ampersands (which are not followed by an entity expression like ä) with & via perl regexp lookahead.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement