Skip to content
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

Text.RemoveHtmlTags returns error if input HTML is null #2

Open
Mike-Honey opened this issue Oct 31, 2018 · 1 comment
Open

Text.RemoveHtmlTags returns error if input HTML is null #2

Mike-Honey opened this issue Oct 31, 2018 · 1 comment

Comments

@Mike-Honey
Copy link

Mike-Honey commented Oct 31, 2018

Text.RemoveHtmlTags returns an error if the input HTML is null.

Expression.Error: We cannot convert the value null to type Text.
Details:
    Value=
    Type=Type

The best workaround I could come up with is to call the function wrapped in an if statement, e.g. for a Calculated Column:

if [myHTML] = null then null else fnTextRemoveHtmlTags ( [myHTML] )

@ImkeF
Copy link
Owner

ImkeF commented Oct 19, 2019

Sorry Mike,
just recognized your message here.
If I'm not mistaken, this error has just been fixed by the pull request from Mike Carlo: #3
Is that correct?
Cheers, Imke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants