You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new folder structure established in the mapping, it is necessary to update the <a> tag href links in every file to reflect the new locations of the files they point to.
I imagine the simplest algorithm to do this would be:
1. Iterate over the files in the second column of mapping.csv.
2. For each file, parse the HTML content for <a> tags with href attributes pointing to any string in the first column of mapping.csv.
3. For each of those tags, replace the href attribute value with the corresponding new value implied by mapping.csv.
The biggest question is how to parse and update the HTML safely, quickly, and elegantly.
The text was updated successfully, but these errors were encountered:
With the new folder structure established in the mapping, it is necessary to update the
<a>
tag href links in every file to reflect the new locations of the files they point to.I imagine the simplest algorithm to do this would be:
The biggest question is how to parse and update the HTML safely, quickly, and elegantly.
The text was updated successfully, but these errors were encountered: