encode_content(string, type)

参数:

string, 需要格式化的字符串

type, 格式化的类型

作用:

以预定义的格式化类型格式化内容,比如纯文本模式,UBB模式,HTML模式等等。