-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icon::get() injection leads to HTML Output #6952
Comments
A simple solution would be removing
|
@ArchBlood I think the |
Yes, but it could be moved from the view file into the widget class ( |
@felixhahnweilheim Yes, you are right, I have done this in the PR #6955. |
Works very well for the needed use case. |
PR is mreged. |
What steps will reproduce the problem?
Currently I'm facing some issues when trying to inject the
Icon::get()
method for icons through the Verified module, we use the Icon class for the icons within our widget classVerifiedIcon
this works with the method of extending an existing widget class throughEVENT_CREATE
but this also requires us to also extend the existing view as well, I've currently gotten an example of our module to implement this throughEVENT_BEFORE_RUN
but the issue is that theIcon::get()
function won't allow the use case we need.What is the expected result?
The
Icon::get()
method should allow to be rendered correctly.What do you get instead?
HTML output is displayed
<i class="fa fa-check-circle tt" title="Verified" aria-hidden="true" role="img" style="color: #458e56;"></i><span class="sr-only">Verified</span>
Additional info
I've tried everything from encoding to decoding even tried multiple hack-ish methods without any ability to use the
Icon:get()
method in a way so that we don't need to rely on core view manipulation throughEVENT_CREATE
.The text was updated successfully, but these errors were encountered: