- Issue created by @seanB
- Merge request !82Allow the Html::validateImport method to also validate a string. → (Open) created by seanB
The Html::validateImport($imported_file, $is_file = TRUE)
method seems to indicate it either accepts a filename or a HTML string (same as the Html::import($imported_file, $is_file = TRUE)
method). In the implementation however, it doesn't use the $is_file
parameter to load the content.
Call Html::validateImport('<some valid html>', FALSE)
and observe the method returning FALSE
.
Same as the implementation in Html::import($imported_file, $is_file = TRUE)
, the $is_file
parameter should be respected.
None
None, the API already contains the $is_file
parameter.
None
Active
1.0
Translator: File