Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
反正有没有让 HAML 自动将我所有的撇号转换'为 HTML 字符实体等价物’(’)?
'
’
’
与所有其他想要转换的字符(破折号、双引号等)一样,以获得更好的在线可读性。
?
这不会是 HAML 会做的事情。如果您想完成,请编写一个帮助程序并使用 gsub 替换您想要的字符。