mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-51915' of git://github.com/timhunt/moodle
This commit is contained in:
commit
37d0021369
@ -180,4 +180,12 @@ What would happen if a non-terminated string were input to this function?
|
||||
|
||||
$this->assertSame($strconv, html_to_text($strorig));
|
||||
}
|
||||
|
||||
/**
|
||||
* Scripts should be stripped.
|
||||
*/
|
||||
public function test_strip_scripts() {
|
||||
$this->assertSame('Interesting text',
|
||||
html_to_text('Interesting <script type="text/javascript">var what_a_mess = "Yuck!";</script> text', 0));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user