次のコードがあります
<a href="snippet:add?code=<?php echo rawurlencode($snippet->snippet_content); ?>Save snippet</a>
どこ
'$snippet = <a rel="nofollow" href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>" title="Submit this post to Digg">Digg this!</a>'
rawurlencode を取得して "<"; を置き換えるにはどうすればよいですか。「<」に?
よろしくお願いします
奪う
更新しました
使用して
<?php echo rawurlencode(html_entity_decode($snippet->snippet_content)); ?>
以下のポスターで示唆されているように、変更を修正していただきありがとうございます < ; "<" に変更しますが、スニペット全体に \ を挿入します
<a rel=\"nofollow\" href=\"http://delicious.com/post?url=<?php the_permalink(); ?>&title=<?php echo urlencode(get_the_title($id)); ?>\" title=\"Bookmark this post at Delicious\">Bookmark at Delicious</a>
私が求めている出力にはバックスラッシュもありません
<a rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink(); ?>&title=<?php echo urlencode(get_the_title($id)); ?>" title="Bookmark this post at Delicious">Bookmark at Delicious</a>
乾杯ロブ
修繕
投稿してくれた皆さん、ありがとう!
<?php echo rawurlencode(htmlspecialchars_decode(stripslashes($snippet->snippet_content))); ?>
魅力的に働き、
どうもありがとうロブ