- Posts: 9
- Thank you received: 0
My client is pasting html code from a widget provided by another service into a text field which I am displaying with the grid component. Much of the HTML is deprecated but usable.
What is weird is that part of that code reads:
<td align="right" valign="top"><div style="color: #33322E;"><font size="4">$875/month</font></div></td>
<td align="right" valign="top"><div style="color: #33322E;"><font size="4">5/month</font></div></td>
Please Log in or Create an account to join the conversation.
I tested this by adding $ to other parts of the same code snippet. The same thing happens for:
<td height="30" align="left" valign="top"><div style="color: #4B1F63;"><font size="5">$860 main st, somewhere, OR</font></div></td>
<td><div style="color: #33322E;">$503-304-9576</div></td>
Please Log in or Create an account to join the conversation.
Hi,
if you insert in field(s) html tag(s), there is no html validation, that can check if the tag is ok. So this can result in data not beeing displayed correctly.
$ sign, this is php variable declaration.
You may try with escape caracter \$
$newline = "A newline is \n";
$return = "A carriage return is \r";
$tab = "A tab is \t";
$dollar = "A dollar sign is \$";
$doublequote = "A double-quote is \"";
Best regards,
Viljem
Please Log in or Create an account to join the conversation.
I appreciate what you are saying, but the program should handle the user input by escaping or encoding it before working with it and the $ does not require escaping to display.
I want to correct the problem rather than make the client adapt. Also, this still does not track as the source of the issue.
The HTML is displaying correctly. A dollar symbol does not get replaced and a dollar sign adjacent to letters does not get replaced, but a dollar sign adjacent to any digits replaces the dollar sign and two digits with nothing. I believe a dollar sign adjacent to a numeral is not a valid variable name, so it seems the problem is somewhere else.
Please Log in or Create an account to join the conversation.
Any reply? I don't see how your response could address the problem. I want to keep my client's need to edit the cut and paste code down and if there were no other alternative, then that would be that, but your response does not seem to be what is happening here, as I stated.
I don't mean to be abrupt. I just want to be sure the issue is not closed.
Please Log in or Create an account to join the conversation.
Hi,
the issue is not closed. We are still searching for the solution that would fit you best.
Can you use
$
Please Log in or Create an account to join the conversation.