在这种情况下如何对网址进行编码:http://jsfiddle.net/spem/c89r1vu1/4/
<script type='text/javascript'>
$('#pnumbers li strong').each(function () {
var html = $(this).html();
$(this).html('<a href="http://example.com/search_query=' + html + '">' + html + '</a>');
});
</script>
<div id="pnumbers" class="rte">
<ul>
<li><strong>Isto é um teste</strong>
</li>
<li><strong>HP Q1292-67026</strong>
</li>
</ul>
</div>