outlandishideas/oowp

Anti-HTML laser gun

szepeviktor opened this issue · 0 comments

Hello!

While developing a WordPress theme one may run into entering small chunks of HTML into an OO(w)P class file.

🔫

Introducing Tag factory :) https://github.com/szepeviktor/Toolkit4WP/blob/80719dfcc485aa118188e3e0054ffc86ee81498e/src/helpers.php#L17

print tag( 'h3', [ 'class' => 'h6 mb-0' ], esc_html( $place->title() ) );

What do you think?