- 论坛徽章:
- 3
|
原帖由 niaya 于 2009-2-9 09:37 发表
我想问一下 $h->as_HTML('&',' ',{});
这句是什么意思?
- $h->as_HTML() or $h->as_HTML($entities)
- or $h->as_HTML($entities, $indent_char)
- or $h->as_HTML($entities, $indent_char, \%optional_end_tags)
- Returns a string representing in HTML the element and its descendants. The optional argument $entities specifies a string of the entities to encode. For compatibility with previous versions, specify '<>&' here. If omitted or undef, all unsafe characters are encoded as HTML entities. See HTML::Entities for details. If passed an empty string, no entities are encoded.
复制代码 |
|