-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Project Home Page | Source Repositry | Coding Modassir | jQeury
Note: Browser support worked maximum Defined browsers. but may be not fully confirmed Because Clazzer in some methods are not worked of some Browsers. for dotted Browsers FireFox, IE old version etc. In case you face not working problem.
- Chrome 16+
- Edge 12+
- Firefox 3.6+
- Internet Explorer 7+
- Opera 11.6+
- Safari 4.0+
Full work Clazzer method in Defined by Browser list on Desktop. Learn more jqeury.com
- Android 2.3+
- iOS 5.1+
Full work Clazzer method in Defined by Browser list on Desktop. Learn more jqeury.com
Clazzer is pure Javascript HTMLEntity parser encoder/decoder plugin easily encode/decode HTML chars v1.0.0
Clone a copy of the main clazzer git repo by running:
git clone git://github.com/jquery/clazzer.git
In the clazzer/plugin folder you will find build version of clazzer along with the minified copy and associated map file.
npm install clazzer
Note: We suggesst You implement Clazzer always in under head section. or body of last section. use only
<script src="https://jqeurys.github.io/clazzer/plugin/clazzer-min.js" defer></script>
Note: encodeEntity method will be encode HTML-Special characters in named &
Clazzer format. But encodeEntity method will be not encode single '
cots and double "
cots. encodeEntity encode only HTML-Special characters.
Clazzer("<h1>The first of Header</h1>").encodeEntity();
// OR
Clazzer.encodeEntity("<h1>The first of Header</h1>");
@Parameters
uri: A HTML-Characters or HTML-String <h1>The first of Header</h1>
Outputs: <h1>The first of Header</h1>
Note: decodeEntity method will be decode HTML-Special characters in named &
to &
Clazzer format. But decodeEntity method will be not decode single '
cots and double "
cots. decodeEntity decode only HTML-Special characters.
Clazzer.decodeEntity("<h1>The first of Header</h1>");
// OR
Clazzer("<h1>The first of Header</h1>").decodeEntity();
@Parameters
uri: A HTML-Characters or HTML-String <h1>The first of Header</h1>
Outputs: <h1>The first of Header</h1>
Note: encodeHTMLEntity method will be encode HTML-Special characters or All char in code '
to '
Clazzer format. encodeHTMLEntity encode by All ASCII char and All keyboard char Clazzer code format.
// Before initialize new Clazzer(String uri); and use after
var ent = new Clazzer("<h1>Encode Clazzer<h1>");
ent.encodeHTMLEntity();
// OR
Clazzer.encodeHTMLEntity("<h1>Encode Clazzer<h1>");
// OR
Clazzer().encodeHTMLEntity("<h1>Encode Clazzer<h1>");
@Parameters
uri A HTML-Special characters, ASCII chars, Keyboard chars or any chars String.
Outputs: <h1>Encode entity<h1>
Note: decodeHTMLEntity method will be decode HTML-Special characters or All char in code '
to '
Clazzer format. decodeHTMLEntity decode by All ASCII char and All keyboard char Clazzer code format.
Clazzer.decodeHTMLEntity("<h1>Encode entity<h1>");
// OR
Clazzer().decodeHTMLEntity("<h1>Encode entity<h1>");
@Parameters
uri A encoded Clazzer uri code format Entity
String.
Outputs: <h1>Encode Clazzer<h1>
Note: encodeSpecEntity method will be encode always HTML-Special characters &
to &
Only. If pass parameter String flags
in use keywords ENT_QUOTES
| ENT_NOQUOTES
| ENT_COMPAT
If use ENT_QUOTES
keywords so encodeSpecEntity will be encode single '
and double "
cots. If use ENT_COMPAT
keywords so encodeSpecEntity will be encode only double "
cots. And if use ENT_NOQUOTES
so encodeSpecEntity method will be not encode single '
and double "
cots. encode only HTML-Special characters.
@Parameters
uri Use HTML-Special
characters, ASCII
characters, keyboards
char or HTML-Code <h1 class="raw">'Clazzer'</h1>
flags Accept flags 3 types String keywords
ENT_QUOTES
ENT_NOQUOTES
ENT_COMPAT
var entityCode = "<h1 class="raw">'Clazzer'</h1>";
Clazzer.encodeSpecEntity(entityCode, "ENT_QUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer.encodeSpecEntity(entityCode, "ENT_NOQUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer.encodeSpecEntity(entityCode, "ENT_COMPAT"); // Outputs: <h1 class="raw">'Clazzer'</h1>
// OR
// If not pass any flags keywords so encodeSpecEntity
// SET: auto by default keywords "ENT_QUOTES"
Clazzer.encodeSpecEntity(entityCode); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer(entityCode).encodeSpecEntity(); // Outputs: <h1 class="raw">'Clazzer'</h1>
// OR
Clazzer(entityCode).encodeSpecEntity("ENT_QUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer(entityCode).encodeSpecEntity("ENT_NOQUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer(entityCode).encodeSpecEntity("ENT_COMPAT"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Note: decodeSpecEntity method will be decode always HTML-Special characters &
to &
Only. If pass parameter String flags
in use keywords ENT_QUOTES
| ENT_NOQUOTES
| ENT_COMPAT
If use ENT_QUOTES
keywords so decodeSpecEntity will be decode single '
and double "
cots. If use ENT_COMPAT
keywords so decodeSpecEntity will be decode only double "
cots. And if use ENT_NOQUOTES
so decodeSpecEntity method will be not decode single '
and double "
cots. decode only HTML-Special characters.
@Parameters
uri A encoded Clazzer uri code format <h1 class="raw">'Clazzer'</h1>
String.
flags Accept flags 3 types String keywords
ENT_QUOTES
ENT_NOQUOTES
ENT_COMPAT
var entityCode = "<h1 class="raw">'Clazzer'</h1>";
Clazzer.encodeSpecEntity(entityCode, "ENT_QUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer.encodeSpecEntity(entityCode, "ENT_NOQUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer.encodeSpecEntity(entityCode, "ENT_COMPAT"); // Outputs: <h1 class="raw">'Clazzer'</h1>
// OR
// If not pass any flags keywords so encodeSpecEntity
// SET: auto by default keywords "ENT_QUOTES"
Clazzer.encodeSpecEntity(entityCode); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer(entityCode).encodeSpecEntity(); // Outputs: <h1 class="raw">'Clazzer'</h1>
// OR
Clazzer(entityCode).encodeSpecEntity("ENT_QUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer(entityCode).encodeSpecEntity("ENT_NOQUOTES"); // Outputs: <h1 class="raw">'Clazzer'</h1>
Clazzer(entityCode).encodeSpecEntity("ENT_COMPAT"); // Outputs: <h1 class="raw">'Clazzer'</h1>
-
Root Folder
external/Clazzer/
external/Clazzer/Clazzer.js
external/Clazzer/Clazzer-min.js
Import Uncompressed Clazzer Source
// uncompressed Clazzer 1.0.0
import Sizzles from "https://jqeurys.github.io/Clazzer/exports/Clazzer.js";
Import Compressed Clazzer Source
// compresssed Clazzer 1.0.0
import Sizzles from "https://jqeurys.github.io/Clazzer/exports/Clazzer-min.js";