Monday 19 October 2026 01:28:04 GMT+02:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

wpautop()

A WordPress formatting function that converts plain text and line breaks into HTML paragraphs.

wpautop() is a WordPress formatting helper that turns plain text and line breaks into HTML paragraphs and line breaks. It is meant to make content look readable without requiring authors to write full HTML by hand. In normal use, it helps the platform display comments or posts in a cleaner way.

From a security perspective, formatting functions matter because they transform data after it has been saved. If the function mishandles special characters, quotes, or edge-case line breaks, attacker-controlled text can be rewritten into active HTML instead of inert text. That can create stored XSS risks in comment or content rendering paths. Defenders pay close attention to where wpautop() sits in the rendering pipeline, and they pair it with escaping, sanitization, and theme-aware testing so user input stays text, not executable markup.

← WIKICROOK index