When character interception, accidents often occur due to the HTML format. ASP is the case, and php(as the current mainstream development language) is the same. If it is a foreseeable and simple HTML format, just use replace. For the article text, The class may contain all HTML formats. If you want to be more efficient, use the following. Tested
$search = array ("'