Markup Tags in Data

QuestionsMarkup Tags in Data
Hamish asked 9 years ago

Hi,

I have some data which makes use of the < > markup brackets as an abbreviation.

So a record will come from the database in this format "<ABC Inc.>" which is an abbreviation for "On behalf of company ABC Inc.".

However since it uses the "< >" brackets it does not display on PHPGrid rows.
When you click edit it would convert "<ABC Inc.>" to "<abc inc.=""></abc>"

Does anyone have any suggestions how to avoid this without converting all the data? It's a common industry practice abbreviation and I'd prefer not to get rid of it.

thanks,

Hamish

1 Answers
Abu Ghufran answered 9 years ago

You can use on_data_display event callback and use htmlspecialchars function to encode < and > signs.
For more, refer demos/editing/custom-events.php

Your Answer

18 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?