Quarantining crap HTML?

DAVID HODGKINSON davehodg at gmail.com
Wed May 22 16:29:26 BST 2013


Upon sleeping on it, this was the direction I was headed in.

The problem is the HTML is user-generated and we know where that 
leads.



On 21 May 2013, at 13:14, Philip Skinner <me at philip-skinner.co.uk> wrote:

> You can specify the content of an iframe using a javascript call in the src:
> 
> <iframe src="javascript:'<html><body><b>hurrah, another iframe</b></body></html>';"></iframe>
> 
> On 05/21/2013 01:57 PM, Ben Vinnerd wrote:
>> You could try putting it in <iframe> (which doesn't support inline html, so
>> you'd have to load it with src="/path/to/buggered_html_loader")
>> 
>> 
>> 
>> On 21 May 2013 12:31, Dave Hodgkinson <daveh at hodgkinson.org> wrote:
>> 
>>> In keeping with the spirit of the list, this isn't directly a perl question
>>> but it might be part of the solution.
>>> 
>>> I'm picking up HTML from another site, and that HTML is pretty crappy.
>>> 
>>> Is there any way of quarantining it so it doesn't bugger up the rest of the
>>> page?
>>> 
>>> 
>>> 
>>> 
> 




More information about the london.pm mailing list