encode_html(string)

参数:

string, 需要格式化的字符串

作用:

过滤掉一些HTML中的关键字符以让字符能够显示正常。