Skip to content

escape="tidy, textile" not behaving #1925

@Bloke

Description

@Bloke

Given an image caption:

I am a caption with "source attribution":https://textpattern.com for an image

And a tag that displays the image caption in some article page context:

<txp:variable name="caption" value='<txp:image_info escape="tidy, textile" />' />
...
...
<txp:variable name="caption" />

Expected behaviour

A Textiled link, according to the docs:

escape="tidy, textile": Remove spaces/newlines, prepend a single space to remove the surrounding

tag, then Textile the content.

Actual behaviour

The text is not passed through Textile and remains unprocessed, raw text.

Additional information

Removing the 'tidy' renders the proper Textiled link. Using escape="textile, tidy" also works. But using escape="tidy, textile" doesn't.

Textpattern version: 4.9.0-dev

Web server vendor and version: dev-demo server

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions