Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

html2text

hi all
i have problem reading text from CMS (word press through json_api)

i can get the data however the string in html format so

how to covert this string to normal string without any tags .

thank you

— asked August 3rd 2010 by gmb Bi
  • formating
  • html
  • text
0 Comments

2 Answers

  • Accepted Answer

    you could try this

    http://phpjs.org/functions/strip_tags:535

    it's a js implementation of php function strip_tags.

    — answered August 3rd 2010 by Dan Tamas
    permalink
    1 Comment
    • Useful!

      — commented July 28th 2011 by david brewer
  • this is more than what i dreamed thank you
    but is their something like formatting HTML to Object in this way i will extract the links the ,image, width, height ,……

    thank you

    — answered August 3rd 2010 by gmb Bi
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.