W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

PHP tags within a link

From: Ian M. Evans <ianevans@digitalhit.com>
Date: Fri, 24 Nov 2000 12:30:52 -0500
To: <html-tidy@w3.org>
Message-ID: <000001c0563c$4b929ce0$de2ee540@IanEvans>
Just wondering how to handle the insertion of PHP variables or scripts that
occur within a link.

For example:

echo $celebsearch; ?>">

Which grabs the variable celebsearch and inserts it into the link at the
server so all the browser would get is:

Tidy turns that into:

p echo $celebsearch; &gt;>">

Which is proper form if the < and > ever made it to the browser, but as PHP
is server-side they never do.

Is there anything I can do to stop tidy touching the <?php and ?> within a
link? It leaves them alone properly outside a link.


Ian Evans
Chairman & Executive Producer
Digital Hit Entertainment
Received on Friday, 24 November 2000 12:31:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:49 UTC