1

I have a few node titles that are being saved with & and displaying that way too.

Is there any way to not encode them while being saved? I tried:

$node = node_load(727);
$node->title = html_entity_decode($node->title);
node_save($node);

I dump out the node and the title is corrected, but is not saved that way. Should I only try to correct the display using the same function?

1 Answer 1

1

Filter input, escape output. You can't be sure that everything in your database is safe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.