Skip to content

Question: How to get data between tags? #9

@roberttolton

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
            });

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions