HTML Support for Paywall Titles & Subtitles

πŸ” Problem Statement

As a Pelcro admin, I experience limitations when configuring paywall messaging because titles and subtitles only accept plain text, which results in being unable to add anchor links or basic HTML elements (e.g. links to Terms, Privacy Policy, or contextual help) within Pelcro-powered Meter and Regular Paywalls.


πŸ’‘ User Story

As a Pelcro admin, I want to add HTML elements (could be initially scoped to anchor links if allowing other elements is too complicated) to the titles and subtitles of Meter and Regular Paywalls during product configuration, so that I can provide richer, contextual messaging and compliance-related links without requiring custom frontend work.


🎯 Definition of Done (DoD)

A feature is done when:

βœ”οΈ Given a product paywall configuration (Meter or Regular Paywall), when an admin enters supported HTML markup in the title or subtitle fields, then the content is saved, sanitized, and rendered correctly in the Pelcro Default UI.

βœ”οΈ This change will impact UI, API, and SDK, specifically:

  • Admin UI:

    • Paywall configuration fields for:

      • Meter step β†’ title, subtitle

      • Select step β†’ title, subtitle

    • Field input type updated from plain text to HTML markup.

  • API:

    • Product / paywall configuration endpoints updated to accept and return sanitized HTML strings.

  • Pelcro Default UI / JS SDK:

    • Meter and Regular Paywalls render allowed HTML elements correctly and consistently.

βœ”οΈ This solution will include the following limitations:

  • Only explicitly allowed HTML elements are supported (initial scope limited to <a> tags).

  • All HTML is sanitized server-side; unsupported tags or attributes are stripped or rejected.

  • No support for inline scripts, styles, or advanced HTML elements.

  • Existing text-only configurations remain backward compatible and unaffected.

Please authenticate to join the conversation.

Upvoters
Status

Backlog

Board
πŸ’‘

Pelcro Product

Date

About 2 hours ago

Author

Galal Abdo

Subscribe to post

Get notified by email when there are changes.