如何转义此字符-->;
i ask becuse i want to use this to send some javascript
to the head using wp_head
这是我要连接到wp\\U头的目标:
add_action(\'wp_head\', \'load_lighbox_portfolio\');
function load_lighbox_portfolio() {
echo \'<!--===STR=========== LIGHTBOX =================-->\'. "\\n";
echo \'<script type="text/javascript" src="\'. get_bloginfo(\'template_url\') .\'/jquery-lightbox/js/jquery.js"></script>\' . "\\n";
echo \'<script type="text/javascript" src="\'. get_bloginfo(\'template_url\') .\'/jquery-lightbox/js/jquery.lightbox-0.5.js"></script>\' . "\\n";
echo \'<link rel="stylesheet" type="text/css" href="\'. get_bloginfo(\'template_url\') .\'/jquery-lightbox/css/jquery.lightbox-0.5.css" media="screen" />\' . "\\n";
echo \'<script type="text/javascript">\' . "\\n";
echo \'$(function() {\' . "\\n";
echo \'$(\'a.lightbox\').lightBox(); // Select all links with lightbox class\' . "\\n";
echo \'});\' . "\\n";
echo \'</script>\' . "\\n";
echo \'<!--===END=========== LIGHTBOX =================-->\'. "\\n";
}
一切都很好。。唯一的问题是--->;符号<我找了一个替换的HTML字符,但找不到。。
需要帮助:)