I manage my own dedicated server now, so there (should be) no server-side settings changed.
<a class="twitter-timeline" href="https://twitter.com/userName" data-widget-id="7586611599999999">
Tweets by @userName
(formatted for clarity)
I could put the snippet in the template, but the front-end space is supposed to be for the user to edit as they please. Having the code as default means it doesn't get lost or accidentally damaged by the user. It also means the TV input type can be rich text (which tends to wrap tags around code like the above), so they can add other content when they need.
At the moment I have the TV as:
Input Type: Textarea
Default Value: "Test default TV content."
Output Type: default
Allow Blank: Yes
If I delete the TV content in the page and save, the space on the site empties. No default content. I searched the page source code and it's not just hidden somewhere. It is saved in the database. Just not being compiled into the page code.
Same behaviour on 2.3.5 and now 2.4.3. Could this be a bug? Is there anything else that will affect TV default values? My feeling is it's not the script, but something in modx which is being tripped too easily.