Skip to content

Question: How to get data between tags? #9

Description

@roberttolton

Hi,

There's the $html variable, but this doesn't return quite what I was hoping for.

Example [html]<span>blah blah</span>[/html]

For a custom tag, I'd like to be able to get the <span>blah blah</span> content only, is that possible?

$bbcode->addTag('newhtml', function($tag, &$html, $openingTag) {
                // I'd like to do something with the internal content of the tags here
            });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions