Enable editor module since the preview route has it as dependency
Use proper GET attributes while passing value
Use strip_tags() instead of rewriting placeholder
Add period at the end of comment as per coding standards