Re: [opennms-devel] Getting around HTML Encoding?
Aaron Paxson <[email protected]> Thu, 7 May 2009 10:38:45 -0500
| Newsgroups | gmane.network.opennms.bugs,gmane.network.opennms.devel |
|---|---|
| Message-ID | <[email protected]> |
Of course, if hibernate is being used for this field, then it should be simple to implement the class. I haven't looked at OpenNMS' persistence yet. --Aaron > > That's exactly my issue. =A0%descr% is the field I'm using for text. > > The utility class sounds easy enough. =A0But then, how would you > describe when to use text and when to use html? =A0I don't think you can > do %descr.text%, can you? =A0Unless you create another field. > > > --Aaron > > > On Wed, May 6, 2009 at 5:29 PM, Tarus Balog <[email protected]> wrote: >> >> On May 6, 2009, at 12:30 AM, Aaron Paxson wrote: >> >>> I just finished my ticketer plugin for AdventNet. =A0It's working great. >>> However, when AdventNet gets the description of the ticket, it >>> encodes all the HTML code. >>> >>> I.e. <td>stuff</td> turns into <td>stuff</td> >>> >>> Is there a way I can "trick" this in order to display HTML tags as >>> they should be? >>> >>> -- >> >> I've been itching for a HTML to text utility class for some time. For >> example, often I want to use %descr% in the text field of a notice, >> but it will imbed the HTML. >> >> Preferably, it would remove most markup but add CR/LF for things like >> <br /> and </p>. >> >> -T >> >> _______________________________________________________________________ >> Tarus Balog, OpenNMS Maintainer =A0 =A0 =A0 =A0 =A0 =A0 Main: =A0 +1 919= 533 0160 >> The OpenNMS Group, Inc. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Fax: =A0= =A0+1 773 345 3645 >> Email: [email protected] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0URL: htt= p://www.opennms.org >> PGP Key Fingerprint: 8945 8521 9771 FEC9 5481 =A0512B FECA 11D2 FD82 B45C >> >> >> ------------------------------------------------------------------------= ------ >> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your >> production scanning environment may not be a perfect world - but thanks = to >> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK= i700 >> Series Scanner you'll get full speed at 300 dpi even with all image >> processing features enabled. http://p.sf.net/sfu/kodak-com >> _______________________________________________ >> Please read the OpenNMS Mailing List FAQ: >> http://www.opennms.org/index.php/Mailing_List_FAQ >> >> opennms-devel mailing list >> >> To *unsubscribe* or change your subscription options, see the bottom of = this page: >> https://lists.sourceforge.net/lists/listinfo/opennms-devel >> > > > > -- > Aaron J. Paxson > --------- > [email protected] > http://aaron.thepaxson5.org > -- = Aaron J. Paxson --------- [email protected] http://aaron.thepaxson5.org ---------------------------------------------------------------------------= --- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i7= 00 Series Scanner you'll get full speed at 300 dpi even with all image = processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of thi= s page: https://lists.sourceforge.net/lists/listinfo/opennms-devel