HAML & RoR: Auto-convert apostrophes, etc., to ASCII HTML entities?
Is there anyway to have HAML automatically convert all my apostrophe's ' to the HTML character entity equivalents ’ (’)?
Ditto with all the other characters that one would want to 开发者_开发知识库convert (dashes, double-quotes, etc.) for better online readability.
?
This wouldn't be something HAML would do. If you want it done, write a helper and use gsub to substitute the characters you want.
加载中,请稍侯......
精彩评论