[TxMt] PHP echo wrap
Andy Armstrong
andy at hexten.net
Sun Jun 3 10:41:48 UTC 2007
On 3 Jun 2007, at 10:09, Ciarán Walsh wrote:
> I'm still not quite certain what you're doing, but you might find
> it useful to know that you can insert an escaped pair of quotes by
> typing ⌘" (that's shift-command-' on my keyboard).
>
> If you already have HTML code in a PHP scope, then surely it's
> already wrapped in quotes?
I think the problem is this:
<a href="http://hexten.net/">Hexten</a>
which the OP then turns into
echo "<a href="http://hexten.net/">Hexten</a>"
and they want
echo "<a href=\"http://hexten.net/\">Hexten</a>"
I try to avoid that (and PHP :) but on the occasions when I do it I
just mark the string and S&P " -> \".
--
Andy Armstrong, hexten.net
More information about the textmate
mailing list