Created
May 11, 2011 11:00
-
-
Save bohman/966282 to your computer and use it in GitHub Desktop.
Just a small thing I wanted to show someone else. I dislike it, because it's bad.
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
.replace(/<(?:.|\s)*?>/g, '') | |
.replace(/ä/gi, 'ä') | |
.replace(/Ä/gi, 'Ä') | |
.replace(/ö/gi, 'ö') | |
.replace(/Ö/gi, 'Ö') | |
.replace(/å/gi, 'å') | |
.replace(/Å/gi, 'Å') | |
.replace(/&/gi, '&') | |
.replace(/”/gi, '\"') | |
.replace(/"/gi, '\"') | |
.replace(/–/gi, '-') |
Intressant. Ska testa! Tack för tipset :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Åh, så könstiga & klüriga täcken!! ÅÄÖ åäö
Åh, så könstiga & klüriga täcken!! ÅÄÖ åäö
Åh, så könstiga & klüriga täcken!! ÅÄÖ åäö
Åh, så könstiga & klüriga täcken!! ÅÄÖ åäö