我在想用 smilies (表情) 来替换用户文本, 如 < code > : < code>, < code>: P 。 使用 regex 。 您认为替换为类的宽度元素是一个好主意吗? 然后我将微笑图像应用到该类?
或者我应该用 标签替换该文本吗?
CSS is usually seen as not part of the content, but these image smileys are... (if you disable the css, the text could change its meaning because emoticons are missing)