(tag: MetaDefinition)
| 187 | } |
| 188 | |
| 189 | private _parseSelector(tag: MetaDefinition): string { |
| 190 | const attr: string = tag.name ? 'name' : 'property'; |
| 191 | return `${attr}=${this._escapeSelectorValue(String(tag[attr]))}`; |
| 192 | } |
| 193 | |
| 194 | private _escapeSelectorValue(value: string): string { |
| 195 | // Escape backslashes and double quotes to prevent CSS selector injection. |
no test coverage detected