Skip to content

Instantly share code, notes, and snippets.

@gravelld
Last active March 20, 2019 09:37
Show Gist options
  • Save gravelld/3c4bcfc424977f7e7025569f897efa02 to your computer and use it in GitHub Desktop.
Save gravelld/3c4bcfc424977f7e7025569f897efa02 to your computer and use it in GitHub Desktop.
A custom regex rule to find and replace common HTML character entities
# 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 /&lt;/ replace with "<"
find /&gt;/ replace with ">"
find /&nbsp;/ 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