JSFiddle - React, Tailwind, and code Playground
HTML
<select>
<option value="An <b>innocent</b> string">Innocent String 1</option>
<option value="Another <b>innocent</b> string">Innocent String 2</option>
<option value="Yet another <b>innocent</b> string">Innocent String 3</option>
<option value="<script>alert(1)</script>">Not So Innocent String</option>
</select>
<div></div>
JavaScript
addString();
$("select").change(addString);
function addString() {
var displ=$("select").val()+"<br/>";
$("div").append(displ);
}