W3C home > Mailing lists > Public > www-validator@w3.org > April 2013

Re: [VE] [325] Add Subject Here

From: David Dorward <david@dorward.me.uk>
Date: Wed, 17 Apr 2013 15:41:03 +0100
To: "Kosha Burnett" <kburnett@promediagrp.com>
Cc: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <DEA5FADD-5FD1-4233-9187-FB94A19EEE55@dorward.me.uk>
On 17 Apr 2013, at 15:21, Kosha Burnett wrote:

> Unfortunately, fixing all of the errors that appear is not an option 
> as the hyperlinks are provided by the client and contain lengthy 
> tracking codes that get parsed as html errors. However, looks like a 
> solution is on the way and I am thankful for that!

Write a script to convert the text representations of the URIs to HTML 
representations then and stick it into your workflow between "Get data 
from client" and "Insert into HTML document".

A trivial example (which assumes that the input doesn't include any HTML 
with correctly encoded ampersands already) would be:

	perl -pe "s/&/&amp;/g" foo

More complicated solutions are not significantly more complicated (given 
that there are prewritten HTML parsers out there for most programming 

David Dorward
Received on Wednesday, 17 April 2013 14:41:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC