Skip to content

Instantly share code, notes, and snippets.

@armandofox
Created January 20, 2026 00:02
Show Gist options
  • Select an option

  • Save armandofox/a909adac06959900e4e3d285a03c6eeb to your computer and use it in GitHub Desktop.

Select an option

Save armandofox/a909adac06959900e4e3d285a03c6eeb to your computer and use it in GitHub Desktop.
shell/perl code to remove various unclean tags from imported Canvas questions in PrairieLearn
find . -name question.html | xargs \
perl -i.bak -p -e "s/<script.*<\/script>//g ; \
s/<link[^>]*>//g ; \
s/<span[^>]*>//g ; \
s/<\/span>//g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment