Created
May 31, 2014 03:46
-
-
Save IQAndreas/c4a24c083acf68dabb13 to your computer and use it in GitHub Desktop.
Replace HTML entities with the actual unicode characters with Bash
This file contains hidden or 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
# There are more, but these were all I needed for the current project | |
sed -i 's/“/“/g' *.md | |
sed -i 's/”/”/g' *.md | |
sed -i 's/©/©/g' *.md | |
# Check if we have any HTML entities remaining (requires some manual filtering by eye) | |
grep '&' *.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment