%
# Try to parse old/new into JSON so we can properly loop over each link code
old_json = JSON.parse(old_value) rescue []
new_json = JSON.parse(new_value) rescue []
%>
<%= simple_format ContentFormatterService.show(
text: old_json.map { |code| "• [[#{code}]]" }.join("\n"),
viewing_user: current_user
) %>
<%= simple_format ContentFormatterService.show(
text: new_json.map { |code| "• [[#{code}]]" }.join("\n"),
viewing_user: current_user
) %>