Forum arrow_forward_ios Codding

Questions By
Arjun Nakula
card_giftcard ₹0

question_answer I see the symbol ! and & is making disturb in creating my own WYSIWYG, how to solve it?

This two symbol ! and &  is making so much problem which creating WYSIWYG. I mean when inserting to database this two symbol is the greatest problem. So how to solve it?
20-09-2019, Total 5 Ans Best Answered , 68 views


check_circle_outline BEST ANSWER
There shouldn't be such a problem if everything is done correctly but since the error is occurring to you. For a quick fix you can use the escape function of javascript and save the escaped string in database.

document.write(escape("question mark will be ? exclamation will be !"));

It will output this 

question%20mark%20will%20be%20%3F%20exclamation%20will%20be%20%21

Then later while showing it. use the unescape function.

document.write(unescape("question%20mark%20will%20be%20%3F%20exclamation%20will%20be%20%21"));

Output : question mark will be ? exclamation will be !

Vishal Bty
21-09-2019

more_horiz Other Answers

Your question isn't clear because you didn't show the type of problem you are facing.

Vishal Bty
21-09-2019

Ok!  I mean the symbol Exclamation mark ( ! ) and the symbol ( &  ) is showing a problem when inserting inside Database with MysQli.

It was showing a problem with WYSIWYG on Mritunjoy.com because MRITUNJOY.com uses its own WYSIWYG created with Javascript.

When I write !  and &  symbol on the WYSIWYG and Submit it, it is ok saved but when I try to edit it the WYSIWYG shows blank.

So is there any method to express these symbols in something different way so it only works as a symbol, not a code.


Arjun Nakula
21-09-2019

!  & 

Vishal Bty
21-09-2019

Thank you, Bro!  The answer is really helpful.

Arjun Nakula
21-09-2019

Please lock LOGIN to Answer

announcement Recently Asked

question_answer
What were the documents required for PMEGP Loan?
Ans(1) ₹0 check_circle_outline
question_answer
PMEGP Loan Guide Lines.
Ans(1) ₹0 check_circle_outline
question_answer
Which is the right time to get EDP Training?
Ans(1) ₹0 check_circle_outline
question_answer
EDP Training Center in Kokrajhar area.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer


announcement Related Ques

question_answer
Which is the right time to get EDP Training?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
How much is the Margin Money of PMEGP Loan fo ST?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
I want to register SENDER ID for my SNS SMS, on AWS.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
What were the documents required for PMEGP Loan?
Ans(1) ₹0 check_circle_outline
question_answer
html css center horizontal list, menu system
Ans(2) ₹0 check_circle_outline
question_answer
How to get the nested Array Data using PHP?
Ans(1) ₹0 check_circle_outline
question_answer
Is RazorPay Really simple and esay to ues?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
convert numbers into words in php
Ans(2) ₹0 check_circle_outline
question_answer
question_answer
What is zend2?
Ans(0) ₹0
question_answer
question_answer
How much Amazon Cloud Hosting charges?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
question_answer
.htaccess not working on my site .. what to do?
Ans(1) ₹0 check_circle_outline
question_answer
PHP SDK - Delete Object not working on s3 - error \
Ans(1) ₹0 check_circle_outline
question_answer
Multiple database vs single database on mysql?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
Need official website links for PMEGP Loan.
Ans(1) ₹0 check_circle_outline
question_answer
error timezone php or set time php timezone
Ans(1) ₹0 check_circle_outline
question_answer
PMEGP Loan Guide Lines.
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
php count variable values separated with comma
Ans(2) ₹0 check_circle_outline
question_answer
How to properly get Pre Signed URL from s3 Bucket?
Ans(1) ₹0 check_circle_outline
question_answer
question_answer
question_answer
question_answer
question_answer