In the insert and update record, use the str_replace function to convert the pipe to the html entity. When you bind the meta title column to the input text box, the code will look like:
<?php echo ((isset($_POST["formElemenet"]))?$_POST["formElemenet"]:""); ?>
change that to:
<?php echo ((isset($_POST["formElemenet"]))?str_replace("|", "|", $_POST["formElemenet"]):""); ?>
this will convert the "|" symbol to the html entity "|"