this post was submitted on 03 Feb 2024
1 points (66.7% liked)

PHP

535 readers
1 users here now

Welcome to /c/php! This is a community for PHP developers and enthusiasts to share and discuss anything related to PHP. From the latest updates and tutorials, to your burning questions and amazing personal projects, we welcome all contributions.

Let's foster an environment of respect, learning, and mutual growth. Whether you're an experienced PHP developer, a beginner, or just interested in learning more about PHP, we're glad to have you here!

Let's code, learn, and grow together!

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 9 months ago (1 children)

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.

[–] [email protected] 1 points 9 months ago (1 children)
[–] [email protected] 2 points 9 months ago (1 children)

Real answer: consider passing Markdown through instead. You're getting really close to one of my favorite memes. It's a dark path, don't tread down it.

[–] [email protected] 1 points 9 months ago (1 children)

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

[–] [email protected] 2 points 9 months ago (1 children)

"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.

[–] [email protected] 1 points 9 months ago

man! you're good at this