Restricting output to support inclusion in a web app