Skip to content

Add attribute scrubbing to documentation for blazor:elementreference #373

@GeertvanHorrik

Description

@GeertvanHorrik

I am trying to render Blazor components, but Blazor adds the "blazor:elementreference" attribute which changes every time we run the tests using bUnit.

Generated code:

<span style="font-size: 12px; text-align: center; margin: 0 auto; display: table" blazor:onclick="1" blazor:elementreference="e35f1ea4-22ae-4c45-8d3b-4f6f07877f10">Test value</span>

In this case, this result is rendered by the following code:

<Blazorise.Text Style="@TextStyle">@Text</Blazorise.Text>

Before submitting a potential PR to update the docs, would you be interested in this?

HtmlPrettyPrint.All(nodes => nodes.ScrubAttributes("blazor:elementreference"));

Metadata

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