I want to turn my table rows into links using JS. I have it looking like this:
-
As you know, HTML attributes have to be surrounded by quotes, so if you need quotes within the attribute you need a different pairing. Try this:
And if you are within a loop and echo'ing stuff out try PHP's HEREDOC syntax.
$out = '';
foreach ( $x as $y )
{
$out .= <<
HTML;
}
echo $out;
Edit: added HEREDOC
- 热议问题