remove broken tags

remove broken <p> and <br> tags on string ends and begins