wp_save_image_file in /wp-admin/includes/image-edit.php
4079
Continue readingEscape single quotes, htmlspecialchar ” &, and fix line endings.Escapes text strings for echoing in JS. It is intended to be used for inline JS (in a tag attribute, for example onclick=”…”). Note that the strings have to be in single quotes. The filter ‘js_escape’ is also applied here.
1036
Continue reading