我有一个像下面这样的字符串:
THE SMASH-HIT, CRITICALLY ACCLAIMED SERIES RETURNS! Now that you've read the first two bestselling collections of SAGA , you're all caught up and ready to jump on the ongoing train with Chapter Thirteen, beginning an all-new monthly sci-fi/fantasy adventure, as Hazel and her parents head to the planet Quietus in search of cult romance novelist D. Oswald Heist.
可以看出,撇号(')表示为ASCII码:
^{pr2}$你建议我如何编码这个字符串?在
其他ascii码也出现了:
"
&
它们被称为HTML entities。最简单的方法是从标准库中使用HtmlParser:
另请参见:
相关问题 更多 >
编程相关推荐