Last active
March 20, 2019 09:37
-
-
Save gravelld/3c4bcfc424977f7e7025569f897efa02 to your computer and use it in GitHub Desktop.
A custom regex rule to find and replace common HTML character entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find HTML encoding and replace with the decoded value | |
rule find_replace_html_encoding with label "Find and replace HTML encoding" has alternatives | |
HTML_DECODED { | |
find /"/ replace with "\"" | |
find /#/ replace with "#" | |
find /$/ replace with "$" | |
find /%/ replace with "%" | |
find /&/ replace with "&" | |
find /</ replace with "<" | |
find />/ replace with ">" | |
find / / replace with " " | |
} | |
applies to album_artist, album_name, track_name, artist, comment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment