Posts by Thiago Condé • 27 points
2 posts
-
2
votes1
answer49
viewsQ: Remove Javascript comments from the script tag of an HTML, ignoring content from other tags (e.g., base 64 images)
I need to ignore the tags img because some images come in Base64 and contain // which are recognized as comments and are removed, breaking all HTML code. function limpa_html($html){ $pattern =…
-
-2
votes7
answers16899
viewsA: How to create a <select> with images in the options?
My small contribution of how to show image in select option using jquery,I can select it later or when the file is loaded: $(".my_select").change(function() { var value_my_select = $(this).val();…