Consider a input element
Here the input field is dynamically generat
The simplest way is just to use the regular getElementById, which requires no escaping:
document.getElementById("meta[152][value]").value;