WinnipegWideWeb Demo Blog

Escaping helpers, slugify, CSRF tokens, and a renderer that is strict enough to be safe.

Default post Published

PHP utilities that keep code sane

Escaping helpers, slugify, CSRF tokens, and a renderer that is strict enough to be safe.

Escaping

Always escape output. Always.

One-liner helper

function h(string $s): string { return htmlspecialchars($s, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); }

You might also like

Suggested based on the post you opened.

1 min read · Published

Databases: the habits that save you later

Indexes, slugs, and prepared statements. The boring stuff that prevents future pain.

1 min read · Published

HTML that stays maintainable

Small patterns that keep templates clean: includes, partials, and predictable classes.

1 min read · Published

Building a blog engine in plain PHP

A clean demo blog: PDO, prepared statements, and a block editor that feels familiar without being heavy.