Giter VIP home page Giter VIP logo

apache-clickable's Introduction

NAME
    Apache::Clickable - Make URLs and Emails in HTML clickable

SYNOPSIS
      # in httpd.conf
      <Location /clickable>
      SetHandler perl-script
      PerlHandler Apache::Clickable
      </Location>

      # filter aware
      PerlModule Apache::Clickable
      SetHandler perl-script
      PerlSetVar Filter On
      PerlHandler Apache::Clickable Apache::AntiSpam Apache::Compress

DESCRIPTION
    Apache::Clickable is a filter to make URLs in HTML clickable. With
    URI::Find and Email::Find, this module finds URL and Email in HTML
    document, and automatically constructs hyperlinks for them.

    For example,

      <body>
      Documentation is available at http://www.foobar.com/ freely.<P>
      [email protected]  
      </body>

    This HTML would be filtered to:

      <body>
      Documentation is available at <a href="http://www.foobar.com/">http://www.foobar.com</a> freely.<P>
      <a href="mailto:[email protected]">[email protected]</a>
      </body>

    This module is Filter aware, meaning that it can work within
    Apache::Filter framework without modification.

CONFIGURATION
      PerlSetVar ClickableTarget _blank
      PerlSetVar ClickableEmail Off

    ClickableTarget
          PerlSetVar ClickableTarget _blank

        specifies target window name of hyperlinks. If set "_blank" for
        example, it filters to:

          <a href="http://www.foobar.com/" target="_blank">http://www.foobar.com/</a>

        None by default.

    ClickableEmail
          PerlSetVar ClickableEmail Off

        specifies whether it makes email clickable. On by default. See the
        Apache::AntiSpam manpage for more.

TODO
    *   Configurable hyperlink construction using subclass.

    *   Currently, this module requires HTML::Parser, not to make duplicate
        hyperlinks. Maybe this can be done without HTML::Parser.

AUTHOR
    Tatsuhiko Miyagawa <[email protected]>

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

SEE ALSO
    the Apache::Filter manpage, the Apache::AntiSpam manpage, the URI::Find
    manpage, the Email::Find manpage, the HTML::Parser manpage

apache-clickable's People

Contributors

miyagawa avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.