Outputting post title without encoding

Try this:

$title = get_post_field('post_title', $post_id, 'raw');

However I’d get to the bottom of what encoding reddit code would prefer. Echoing raw stuff is poor idea for security.

tech