diff --git a/includes/footer.inc.php b/includes/footer.inc.php
index 66a9e00..5f531cf 100644
--- a/includes/footer.inc.php
+++ b/includes/footer.inc.php
@@ -1,6 +1,4 @@
\ No newline at end of file
diff --git a/toc.php b/toc.php
index 2e46f85..d6a86a2 100644
--- a/toc.php
+++ b/toc.php
@@ -30,18 +30,19 @@ OL {list-style:none}
Front cover
Introduction
- $chapter) {
- echo "$chapter_num $chapter
\n\n";
+ echo "- $chapter_num
".htmlentities($chapter)."
\n\n";
foreach($sections as $section_num => $section) {
$section_chapter = explode("." , $section_num)[0];
if($section_chapter == $chapter_num) {
- echo "- $section_num
$section
\n\n";
+ echo "- $section_num
".htmlentities($section)."
\n\n";
foreach($items as $item_num => $item) {
$item_ar = explode("." , $item_num);
$item_section = $item_ar[0] . "." . $item_ar[1];
if($item_section == $section_num) {
- echo "- $item_num $item
\n";
+ echo "- $item_num ".htmlentities($item)."
\n";
}
}
echo "
\n \n";