Trusted by collectors since 2001

Collector page

TDG Output Escaping Library

Use this page to open the right TDG tools, guides, and support links.

TDG Output Escaping Library

TDG Output Escaping Library

Safe Display Rules for collector pages.

See how The Diecast Guide prepares labels, links, guide copy, form text, and page state before anything appears on screen. Public visitors see safe display rules only; private examples and admin controls stay inside WordPress.

Safe Display Rules6
Active Rules6
Page Display4
Guides / State1 / 1

Safe Display Detail

Script Json Safe Display Rule

This detail explains the public display rule only. Private examples, admin forms, mutation controls, and unescaped output remain private.

Rule
json_script_payload
Module
Core
Display Area
Json
Context
script_json
Safe Output
Safe frontend state
Surface
Frontend State
Boundary
Encoded Json Only
Updated
2026-06-17 21:41:19
Back to output escaping library
HtmlActive

Admin Label Safe Display Rule

Keeps plain labels and page text safe before collectors see them.

Module
Core
Display Area
Html
Safe Output
Safe text display
Surface
Admin Render
Boundary
Escaped text only
View display rule detail
AttributeActive

Html Attribute Safe Display Rule

Keeps button labels, image text, and template attributes safe for page markup.

Module
Core
Display Area
Attribute
Safe Output
Safe attribute display
Surface
Template Attribute
Boundary
Escaped attributes only
View display rule detail
UrlActive

Public Url Safe Display Rule

Keeps links safe before they appear on guide, blog, and account pages.

Module
Core
Display Area
Url
Safe Output
Safe link display
Surface
Public Link
Boundary
Safe Url Only
View display rule detail
TextareaActive

Textarea Value Safe Display Rule

Keeps form text safe when operators review or display saved notes.

Module
Core
Display Area
Textarea
Safe Output
Safe form text display
Surface
Admin Form
Boundary
Escaped form text only
View display rule detail
Html AllowlistActive

Allowed Post Content Safe Display Rule

Allows approved guide formatting while blocking unsafe display patterns.

Module
Core
Display Area
Html Allowlist
Safe Output
Approved guide formatting
Surface
Public Content
Boundary
Approved guide formatting only
View display rule detail
JsonActive

Script Json Safe Display Rule

Keeps frontend state safe before interactive page features read it.

Module
Core
Display Area
Json
Safe Output
Safe frontend state
Surface
Frontend State
Boundary
Encoded Json Only
View display rule detail

Only safe display rules are shown.

Private examples, admin save controls, mutation tools, and unescaped output stay out of public guide, blog, and page views. Public pages should use real life diecast photos that help collectors identify the subject clearly.

View input validation library