Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm calling
content_format($field_info, $value, 'plain')
with the $field_info of a Text field and array('This is a "quoted" text.')
in $value.
The result is
This is a "quoted" text.
How can I get unescaped plain text that is suitable for putting into a plain-text email message, i.e. get '"' rather than '"'?