Solved

html escape tricky case, any you have?

Posted on 2013-10-24
10
180 Views
Last Modified: 2013-11-12
Hi there;

I am trying to test html escape in my code. Is there any you can provide me? Tricky ones would be appreciated.

No SQL injection code is necessary.

Regards.
0
Comment
Question by:jazzIIIlove
  • 5
  • 3
  • 2
10 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39597466
It is not very clear what you are asking for.  If you need url rncoding the information is at:
http://www.w3schools.com/tags/ref_urlencode.asp

If you are looking for the HTML entities codes they are here:
http://www.theukwebdesigncompany.com/articles/entity-escape-characters.php

If itis something else you are looking for, then you will need to provide more detail.

Cd&
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39597479
take a look here:

http://text-symbols.com/html/

if you can convert all of these you should be good to go
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 39600089
Actually, what I want is to test my code against html escape. Any ways?

Regards.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 33

Expert Comment

by:Big Monty
ID: 39600173
i'm not sure I understand then...

Do you want to take a string of non standard characters and escape them? if so, just copy and paste some from the link I sent
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 39600246
I want an example of a html line(s) having those but in a tricky way that cause to fail in my code.

Regards.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39600254
thats what I thought. since thats the case, just create some dummy html, add some of those characters in a div or span or p tag, and see if it works properly
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39600262
not sure if this'll come across or if EE's editor will escape it

example:
<p>æ</p>
<span>¿</span>
<div>©</div>

Open in new window

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39601880
@jazzIIIlove,

Is there some point to this; or you just got bored and thought you would post a time waster?

Instead of going in circles with "tricky" why don't you just tell us what you are trying to do or give us some kind of requirement.

Cd&
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 39605205
Just to find out whether my htmlescape works fine or not.

regards.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 39605572
That's a pretty vague request. And since you're not really answering my questions I previously posted (such as whether or not you copied and pasted the html I suggested, I don't think you'll get much help here without knowing the context in which you're looking to test it.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lazy load not working with masonry js 1 14
Input box width 6 25
jQuery - following an example but can I save data server side? 20 46
Scroll 5 news at a time. 4 25
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now