i created this function to sanitize the input fields on my site, but i need it (the function) to allow the input of some html tags. how can i improve the function to allow this?

  • shnizmuffin@lemmy.inbutts.lol
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    You’d probably get more feedback if you posted a proposed solution (or “correct answer”) to StackOverflow and let the community tell you how dumb you are in between generating exactly what you are looking for.

        • amargo85OP
          link
          fedilink
          arrow-up
          1
          ·
          9 months ago

          which programming languages do you master? i’d actually like to work with you

          • shnizmuffin@lemmy.inbutts.lol
            link
            fedilink
            English
            arrow-up
            2
            ·
            9 months ago

            “Master” is a strong word, but when I have to build applications it’s PHP in the back and JS up front. Specifically, Laravel implementations with whatever on top.

            I’m extremely proficient with templating languages that eventually turn into HTML (nunjucks, antlers, blade, handlebars, webc, vue) and CSS (SCSS, LESS). A ton of my work winds up being on Static Site Generators and the unholy abomination that is at-scale Email development.