1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 export const getTagValue = (document: Document | Element, tagName: string, defaultValue: string) => {
6 const [el] = Array.from(document.getElementsByTagName(tagName));
7 return el ? el.innerHTML : defaultValue;