Friday, August 22, 2008

How to posting HTML or Javascript codes

Hello bloggers, following is the way of , tips , and tool for blogger friends. about how to posting html or javascript codes, because sometimes you want to encode your text so that certain specials characters are preserved regardless of your user’s character set. This is done by replacing special characters with their HTML Entities. Unlike our HTML Encoder tool, this tool will change all special characters while preserving any HTML tags.

For example :
HTML code before encoding:

<a href="http://free-7.blogspot.com" alt="computer tips">
free7 blog
</a>

HTML code after encoding:

&lt;a href=&quot;http://free-7.blogspot.com&quot; alt=&quot;computer tips&quot;&gt;
free7 blog
&lt;/a&gt;


Javascript code before encoding

<FORM METHOD="post">

<INPUT TYPE="button" VALUE="Click me!"

OnClick = "hint_wnd = window.open(
'', 'hint_wnd', 'width=50, height=60, resizable=no, scrollbars=no' );
hint_wnd.document.write( 'Hello all!' );
return true;">
</FORM>


Javascript code after encoding:

&lt;FORM METHOD=&quot;post&quot;&gt;
&lt;INPUT TYPE=&quot;button&quot; VALUE=&quot;Click me!&quot;
OnClick = &quot;hint_wnd = window.open(
'', 'hint_wnd', 'width=50, height=60, resizable=no, scrollbars=no' );
hint_wnd.document.write( 'Hello all!' );
return true;&quot;&gt;
&lt;/FORM&gt;


Move to : Encode JavaScript / HTML Entities Tool

7 comments:

  1. nice posting bro. but why do you never visit me again??? have you been become a blog celeb now??? and where did the link go??? i love you bibeh ...

    ReplyDelete
  2. Boss, klo sebaliknya gimana?, itu-tu kode yang sudah di parse/encoding biar tampil di artikel spt artikel ini. Cepat donk jawabannya (biar tambah ilmu sedikit maksa boleh yuaaaa... he...he...he...)

    ReplyDelete
  3. @ aris :
    kunjungi aja link ini coy :
    http://centricle.com/tools/html-entities/

    nanti kalo sempat post juga decode ini,

    ReplyDelete
  4. Wew ... Thanks widget ato apalah itu namanya... :)

    ReplyDelete
  5. mantap ya, langsung disediakan kotaknya jadi ga repot2. Gak kepikiran bikin ky gini.
    Btw, bang iwan, link saya (A-to-Z) diubah dong ke URL baru... *ngarep*

    ReplyDelete
  6. Asyik juga bisa encoding disini..thanks ya Bos

    ReplyDelete
  7. hueheheheh Phrase tohhhh !!! Good

    ReplyDelete

Please leave your comments or your promotion links, but don't add HTML links into the comment body, because I consider it as a spam, and will be delete..

Thank you for your visit..