Created
January 20, 2026 00:02
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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