开发者

How to convert HTML entities to plain text in YQL or Y! Pipes?

开发者 https://www.devze.com 2023-02-03 05:25 出处:网络
I have the source 开发者_StackOverflow社区in html entities (eg: cover)

I have the source 开发者_StackOverflow社区in html entities (eg: cover) I want to convert them into simple readable plain text (eg: abcdef...)

how can i do that using YQL or Yahoo Pipes? (eg: i want to convert cover into cover using YQL or Yahoo pipes)


Use the following components:

  • A yql stylesheet

select * from xslt where url="//foo.html" and stylesheet="//bar.xsl"

  • An entity declaration

    <!DOCTYPE xsl:stylesheet[
    <!ENTITY 99 "c">
    <!ENTITY 111 "o">
    <!ENTITY 118 "v">
    <!ENTITY 101 "e">
    <!ENTITY 114 "r">
    ]>
    

References

  • XML Entity Definitions for Characters (2nd Edition)
0

精彩评论

暂无评论...
验证码 换一张
取 消