diff --git a/lib/cleanhtml.php b/lib/cleanhtml.php
index ab3baaede0..16cf0b897f 100644
--- a/lib/cleanhtml.php
+++ b/lib/cleanhtml.php
@@ -432,7 +432,7 @@ function clean($t) {
}
if ($p === $endp) {
if ($endp === $len) {
- $this->lerror("<0>Unclosed HTML tag", $tagp, $p);
+ $this->lerror("<0>Unclosed tag", $tagp, $p);
}
$x .= ">";
$xp = $endp - 1;
@@ -509,7 +509,7 @@ function clean($t) {
$x .= substr($t, $xp);
}
if ($this->opentags) {
- $this->lerror("<0>Unclosed HTML tag", $this->opentags->pos1, $this->opentags->pos2);
+ $this->lerror("<0>Unclosed tag", $this->opentags->pos1, $this->opentags->pos2);
}
$this->context = $this->opentags = null;
@@ -539,6 +539,11 @@ function message_list() {
return $this->ml;
}
+ /** @return string */
+ function full_feedback_text() {
+ return MessageSet::feedback_text($this->ml);
+ }
+
/** @return CleanHTML */
static function basic() {
if (!self::$main) {
diff --git a/test/t_cleanhtml.php b/test/t_cleanhtml.php
index 1c623cb908..dc505b73de 100644
--- a/test/t_cleanhtml.php
+++ b/test/t_cleanhtml.php
@@ -42,4 +42,17 @@ function test_void() {
xassert_eqq($chtml->clean('
'), '
');
xassert_eqq($chtml->clean('
\n 1. Between advisors and advisees: permanent. \n | \n
\n 2. Between family members (if they could be potential reviewers): permanent. \n | \n
\n \n 3. Between individuals who have collaborated in the past 5 years. Collaboration includes joint research, projects, papers, or direct funding (not corporate funding) from the potential reviewer to an author. Co-participation in professional activities, such as tutorials, is not considered a conflict.\n \n | \n
\n 4. Between individuals from the same institution, or who were at the same institution within the last 5 years. \n | \n
\n 5. Between individuals whose relationship could compromise objectivity in the review process. \n | \n