Created
August 15, 2017 18:57
-
-
Save siikamiika/51a56ccc63358ff287e7fe967e5ecf37 to your computer and use it in GitHub Desktop.
ruby
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
document.body.innerHTML = document.body.innerHTML.replace(/([-'a-z\u4e00-\u9eff]+)《(.*?)》/g, '<ruby>$1<rt>$2</rt></ruby>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment