Skip to content

Instantly share code, notes, and snippets.

@ImkeF
Last active November 18, 2019 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ImkeF/3e5be93397a1aae7e037717f67084ba8 to your computer and use it in GitHub Desktop.
Save ImkeF/3e5be93397a1aae7e037717f67084ba8 to your computer and use it in GitHub Desktop.
let func =
(HTML as text) =>
let
// Use "Lines.FromBinary(Web.Contents("YourURL"))" to retrieve the HTML in text-form
Source = Text.From(HTML),
SplitAny = Text.SplitAny(Source,"><"),
ListAlternate = List.Alternate(SplitAny,1,1,0)
in
ListAlternate
, documentation = [
Documentation.Name = " Text.ShowHtmlTags
", Documentation.Description = " Selects all Html tags from a text
" , Documentation.LongDescription = " Selects all Html tags from a text.
", Documentation.Category = " Text
", Documentation.Source = " Inspired by a solution from Bill Szysz
", Documentation.Author = " Imke Feldmann: www.TheBIccountant.com
", Documentation.Examples = {[Description = "
" , Code = "
", Result = "
"]}]
in
Value.ReplaceType(func, Value.ReplaceMetadata(Value.Type(func), documentation))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment