Is this possible to do own entities?
Like: &longline; –> —————————–
then use it in html code:
<div>
&longline;
bla bl bla
</div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s possible in XML using the
<!ENTITY>declaration, but I wouldn’t recommend it. Your site would no longer be HTML, and most browsers wouldn’t accept it. (Indeed, none do, unless your file is XML, which rather defeats the purpose.) Client-side processing using JavaScript is possible, but not accessible. Server-side processing is a waste of time, unless it’s user input, in which case you should replace the entities before inserting the data into your database.So, yes, it’s possible, but unless you have a good reason to do it… don’t!