build.utils.misc.tg_html.mention_html()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 9
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
nop 2
1
# -*- coding: utf-8 -*-
2
3
4
from html import escape
5
6
7
async def mention_html(user_id, name):
8
9
    """
10
11
    The function is designed to output a link to a telegram.
12
13
    """
14
15
    return f'<a href="tg://user?id={user_id}">{escape(name)}</a>'
16