I have a update query, where I need to update the HTML encoded string in the database.
Below is the update statement -
$model->update(array('CreatedDate','SmsText'));
Suppose if ‘SmsText’ contains
"A 'quote' is <b>bold</b>"
I want it to be saved as
A 'quote' is <b>bold</b>
I tried with the below query, but this did not work
$model->update(array('CreatedDate',encode('SmsText')));
How can I do this