Quarantining crap HTML?

Ben Vinnerd ben at vinnerd.com
Tue May 21 14:33:08 BST 2013


What if it contains \ ?  :)

Seriously though, I'd assumed that OP (Dave) didn't want to make any
changes to the HTML he'd taken from the other website - although I may be
wrong.


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

> \
>
>
> On 05/21/2013 02:28 PM, Ben Vinnerd wrote:
>
>> What if the HTML contains single or double quotes?
>>
>>
>> On 21 May 2013 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