Handle html inside Json from remote with Fuse

Hey, hey

I am very happy with Fuse, it’s really easy to learn and build an app, i’ve already tried many frameworks like titanium, cordova but fuse is my best.

Today i tried to fetch json from remote server, it works great after some testing, but i face a little probleme, my json contains html tags, like line break, or paragraph that i want to ask some questions :

  • Is it possible to render html from json ? like line breaks, they’re important for easy reading.
  • If not how to handle line breaks inside fuse? and how to remove html tags from my Json?

I tried :

str.replace(/<\/?[^>]+>/gi, '')

but it’s not working.

Thanks for your advices.

Hi,

Hope the below link helps … Please check https://www.fusetools.com/community/forums/general/json_object_with_html_tag?page=1&highlight=129c8ef8-09f9-47a1-a239-18ba8557747a#post-129c8ef8-09f9-47a1-a239-18ba8557747a

If you want to render your html in fuse you can use a WebView. Please have a look at the docs: https://www.fusetools.com/docs/fuse/controls/webview