I am studying Security and wanted to know the general approach to retrieve and display code to client after it is safely encoded and stored in the database.
Sign up to request clarification or add additional context in comments.
Comments
0
Output using:
htmlspecialchars($output, ENT_QUOTES, 'UTF-8');
If you are using a framework or template engine, they will inevitably have some sort of escape function or modifier to use from within a template which wraps this function.
<for<and>for>can display<script>normally with<and>