---
name: "HTML::Prototype::Helper::Tag"
section: "3pm"
platform: "linux"
package: "libhtml-prototype-perl"
version: "1.48-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::Prototype::Helper::Tag"
---

# HTML::Prototype::Helper::Tag(3pm)

Defines a tag object needed by HTML::Prototype

## NAME

HTML::Prototype::Helper::Tag - Defines a tag object needed by HTML::Prototype

## SYNOPSIS

```
        use HTML::Prototype::Helper;
```

## DESCRIPTION

Defines a tag object needed by HTML::Prototype

### REMARKS

Until version 1.43, the internal function *$self-*\_tag\> used *$tag-*as\_XML\> as its return value. By now, it will use *$tag-*as\_HTML( `$entities` )\> to invokee *HTML::Entities::encode\_entities*. This behaviour can be overridden by setting *$HTML::Prototype::Helper::Tag::USE\_ASXML\_FOR\_TAG* to 1.

### METHODS

- HTML::Prototype::Helper::Tag-\>new( $object\_name, $method\_name, $template\_object, $local\_binding, $object )

  - $tag-\>object\_name( \[$object\_name\] )

  - $tag-\>method\_name( \[$method\_name\] )

  - $tag-\>template\_object( \[$template\_object\] )

  - $tag-\>local\_binding( \[$local\_binding\] )

  - $tag-\>object( \[$object\] )

  - $tag-\>value( )

  - $tag-\>value\_before\_type\_cast( )

  - $tag-\>to\_input\_field\_tag( $field\_type, \\%options )

  - $tag-\>to\_content\_tag( $tag\_name, $value, \\%options )

  ## SEE ALSO

HTML::Prototype, \<http://prototype.conio.net/\>

## AUTHOR

Sascha Kiefer, `"esskar@cpan.org"`

Built around Prototype by Sam Stephenson. Much code is ported from Ruby on Rails javascript helpers.

## LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
