in reply to Switching out characters inside links

See HTML::Entities

In short:

use HTML::Entities; encode_entities($_all_page_content);