This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Format Plain text with HTML tags  RSS feed

 
Bartender
Posts: 4050
54
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I ran in to an issue where we have a message in plain text and we are supposed to display that in IFrame. We don't have any HTML tags inside the original message. Hence the message doesn't get formatted inside the IFrame. Is there any Yahoo APIs available for this? Or any other APIs you guys have used?

Thanks,
 
Author and ninkuma
Marshal
Posts: 66801
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "format plain text"? Seems like a bit of an oxy-moron. If it's formatted, it's not "plain text ", is it?
 
Vijitha Kumara
Bartender
Posts: 4050
54
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear.
To the issue, We get emails (Say from Outlook) in to the system, the body is retrieved and have it as a text property (which may consists of spaces, tabs and line break characters). When we display this text message as is in a IFrame (this is a different functionality within the system) it's not formatted since the original text doesn't have any HTML tags etc.. But with a TextArea this works fine. I'm not sure whether this can be done at all yet.

Appreciate your help on this...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66801
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you tried making sure that the content type is text/plain? otherwise the browser is probably trying to treat it as HTML.
 
Vijitha Kumara
Bartender
Posts: 4050
54
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have some other issues as well, but will try this also and get back, thanks Bear.
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like someone needs a pre tag.

Eric
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!