Difference between revisions of "Template:RemoveHTMLContainers"
Line 4: | Line 4: | ||
| {{#expr: {{#pos: {{#var: string}} <!-- Find closing bracket ">" of LAST span opening tag (first closing bracket after offset from start of last opening bracket) --> | | {{#expr: {{#pos: {{#var: string}} <!-- Find closing bracket ">" of LAST span opening tag (first closing bracket after offset from start of last opening bracket) --> | ||
| > | | > | ||
− | | {{#ifeq: {{#rpos: {{#var: string}} | -1 | 0 | {{#var: string}} }} <!-- Find LAST span opening tag--> | + | | {{#ifeq: {{#rpos: {{#var: string}} | <span }} | -1 |
− | + | | 0 | |
+ | | {{#rpos: {{#var: string}} | <span }} <!-- Find LAST span opening tag--> | ||
}} | }} | ||
}} + 0 <!-- correct off by one error in the beginning of the string --> | }} + 0 <!-- correct off by one error in the beginning of the string --> |
Revision as of 22:56, 19 March 2019
Remove the fucking spa(n/m) containers #ask queries wrap around results making them impossible to use as variables for later computation