File: tests/data/email-options.json

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  PHP Link to HTML  >  tests/data/email-options.json  >  Download  
File: tests/data/email-options.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Link to HTML
Convert URLs and email addresses into HTML links
Author: By
Last change:
Date: 1 year ago
Size: 927 bytes
 

Contents

Class file image Download
{
    "options": {
        "attr": {
            "class": "foo"
        }
    },
    "tests": [
        {
            "test": "example@example.com",
            "expected": "<a href=\"mailto:example@example.com\" class=\"foo\">example@example.com</a>"
        },
        {
            "test": "example@example.com",
            "options": {
                "attr": {
                    "class": "bar"
                }
            },
            "expected": "<a href=\"mailto:example@example.com\" class=\"bar\">example@example.com</a>"
        },
        {
            "test": "example@example.com",
            "options": {
                "attr": {
                    "name": "baz"
                },
                "ignore": [
                    "qux"
                ]
            },
            "expected": "<a href=\"mailto:example@example.com\" class=\"foo\" name=\"baz\">example@example.com</a>"
        }
    ]
}

For more information send a message to info at phpclasses dot org.