To show HTML code in our posting we should parse the code. This is the steps to parse HTML code and put them in our post.
1. To parse your HTML code, copy them to this box.
2. Second, click on 'Parse Script'.
3. Then copy the code that have been changed.
4. Finally paste the code to your post. This is the way I parse my HTML code, so you can see the HTML code of my 'Parse HTML Widget'.
<script type="text/javascript">
function convert(){var ele1 = document.getElementById("somewhere");var replaced;replaced = ele1.value;replaced = replaced.replace(/&/ig, "&");replaced = replaced.replace(/</ig, "<");replaced = replaced.replace(/>/ig, ">");replaced = replaced.replace(/"/ig, """);replaced = replaced.replace(/±/ig, "±");replaced = replaced.replace(/©/ig, "©");replaced = replaced.replace(/®/ig, "®");replaced = replaced.replace(/ya'll/ig, "ya'll");ele1.value = replaced;}
</script><br />
<table style="margin:0 auto"><tbody>
<tr> <td><textarea id="somewhere" style="background: none repeat scroll 0% 0% rgb(248, 248, 248); border: 1px solid rgb(204, 204, 204); height: 300px; width: 595px"></textarea><br/>
<input onclick="convert();" style="padding: 5px;" type="button" value="Parse Script" /></td> </tr>
</tbody></table>
HAVE A NICE DAY

0 comment:
Speak up your mind
Tell us what you're thinking... !