At 07:23 -0700 on 04/23/2013, Gribnif wrote about Re: Validation errors for PHP tags:

Actually, no. The result is not, strictly speaking, well-formed. A well-formed href attribute has no spaces around the "=" and has quotes (single or double) around the URL. So, if you instead try this:

<a href="<?php createURL('myKeyword') ?>"> Lots of link text, image code, etc. here </a>

it validates successfully. Of course, there will always be ways you can trip up BBEdit's validation by inserting PHP code, but in this case there is a workaround, which happens to produce HTML that is more valid anyway.


One Warning/Gotcha - Assuming this will validate OK, you can run into problems with the Browser if the createURL created replacement text has quotes. This would make what the Browser sees - <a href=""created-url"">.

--
--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to