Skip to content

Output html tags or plain text #32

Open
@olach

Description

The logic for how to output the content should be changed.

Right now, the third parameter specifies whether the content should be returned or echoed. So far so good. But this parameter also specifies if the content should include the html tags or not.

To better comply with how Kirby does its things, my proposal would be to have this behavior instead:

seo('title') returns the content as plain text. I.e: title content

seo('title')->html() returns the content wrapped in html. I.e: <title>title content</title>

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions