• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Basic HTML parsing for input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic HTML parsing for input?


  • Subject: Re: Basic HTML parsing for input?
  • From: Rams <email@hidden>
  • Date: Wed, 04 Jun 2008 23:36:15 -0400


On Jun 4, 2008, at 11:07 PM, Chuck Hill wrote:


On Jun 4, 2008, at 7:34 PM, Rams wrote:

Hi everyone,

Sorry if this is a really n00b question, but what do you use to parse input for html tags? Is there anything built in? I'm using WO 5.3.3 and Wonder.

Thanks!

What is it you want to do?

Chuck

Well, I have a WOText for user input that will be displayed once it is saved... think: typical weblog.


Ideally, I'd like to allow a handful of html elements so that my users can have line breaks, paragraphs, and not just a solid block of text. At the same time, I'd also like to allow class attributes so that certain elements can be styled for different uses... like a shell code div, or a paragraph with a drop cap at the beginning. Naturally, I want to strip out mismatched tags so they can't escape their own little area on the page, strip out scripts, and pretty much anything else that could be easily abused. Basically, whitelist a few things and strip out everything else :-)

Rams

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Basic HTML parsing for input?
      • From: Lachlan Deck <email@hidden>
References: 
 >Basic HTML parsing for input? (From: Rams <email@hidden>)
 >Re: Basic HTML parsing for input? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: New WOLips/WebObjects/Eclipse installer
  • Next by Date: Fwd: List of all extensions / frameworks to Webobjects
  • Previous by thread: Re: Basic HTML parsing for input?
  • Next by thread: Re: Basic HTML parsing for input?
  • Index(es):
    • Date
    • Thread